Fix NPE in version comparison

This commit is contained in:
Grahame Grieve 2023-09-18 17:06:31 +10:00
parent 7c655a7026
commit ebf706b837
1 changed files with 3 additions and 0 deletions

View File

@ -180,6 +180,9 @@ public class ComparisonSession {
}
private VersionComparisonAnnotation getAnnotation(Base b) {
if (b == null) {
return null;
}
if (b.hasUserData(VersionComparisonAnnotation.USER_DATA_NAME)) {
return (VersionComparisonAnnotation) b.getUserData(VersionComparisonAnnotation.USER_DATA_NAME);
} else {