Fix NPE in version comparison
This commit is contained in:
parent
7c655a7026
commit
ebf706b837
|
@ -180,6 +180,9 @@ public class ComparisonSession {
|
||||||
}
|
}
|
||||||
|
|
||||||
private VersionComparisonAnnotation getAnnotation(Base b) {
|
private VersionComparisonAnnotation getAnnotation(Base b) {
|
||||||
|
if (b == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (b.hasUserData(VersionComparisonAnnotation.USER_DATA_NAME)) {
|
if (b.hasUserData(VersionComparisonAnnotation.USER_DATA_NAME)) {
|
||||||
return (VersionComparisonAnnotation) b.getUserData(VersionComparisonAnnotation.USER_DATA_NAME);
|
return (VersionComparisonAnnotation) b.getUserData(VersionComparisonAnnotation.USER_DATA_NAME);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue