Added null check for bus_category; Updated version to 0.7
This commit is contained in:
parent
f1e2ef608c
commit
f9f026d815
2 changed files with 4 additions and 1 deletions
2
pom.xml
2
pom.xml
|
|
@ -10,7 +10,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>ru.nbch</groupId>
|
<groupId>ru.nbch</groupId>
|
||||||
<artifactId>credit-tracker</artifactId>
|
<artifactId>credit-tracker</artifactId>
|
||||||
<version>0.6</version>
|
<version>0.7</version>
|
||||||
<name>credit_tracker</name>
|
<name>credit_tracker</name>
|
||||||
<description>Credit Tracker Application</description>
|
<description>Credit Tracker Application</description>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,9 @@ public class CTUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean checkBusCategory(String busCategory) {
|
public static boolean checkBusCategory(String busCategory) {
|
||||||
|
if (StringUtils.isBlank(busCategory)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
switch (busCategory) {
|
switch (busCategory) {
|
||||||
case "MFO", "MKK", "MFK" -> {
|
case "MFO", "MKK", "MFK" -> {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue