Added null check for bus_category; Updated version to 0.7

This commit is contained in:
Mikhail Trofimov 2025-07-23 10:22:47 +03:00
parent f1e2ef608c
commit f9f026d815
2 changed files with 4 additions and 1 deletions

View file

@ -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>

View file

@ -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;