Marc De Leenheer

Avoid null pointer exception when comparing annotations

Change-Id: Iedcd138fb6cbc5be6bdf79890e872d1d4a9ccc82
......@@ -33,7 +33,11 @@ public final class AnnotationsUtil {
}
for (String key : lhs.keys()) {
if (!lhs.value(key).equals(rhs.value(key))) {
if (lhs.value(key) == null && rhs.value(key) != null) {
return false;
}
if (lhs.value(key) != null && !lhs.value(key).equals(rhs.value(key))) {
return false;
}
}
......