fix NPE building CCDA

This commit is contained in:
Grahame Grieve 2022-10-20 22:07:05 +11:00
parent d0b4a1c247
commit c053f08a13
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ public class VersionUtilities {
public static boolean isMajMinOrLaterPatch(String test, String current) {
String t = getMajMin(test);
String c = getMajMin(current);
if (c != null && c.compareTo(t) == 0) {
if (c != null && t != null && c.compareTo(t) == 0) {
String pt = getPatch(test);
String pc = getPatch(current);
if (pt==null || "x".equals(pt)) {