fix: don't assume a referent exists on ReferenceValue (#2926)

This commit is contained in:
Connor Tumbleson 2022-11-08 06:56:05 -05:00 committed by GitHub
parent 273842279a
commit ef83dc2f04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ public class ResEnumAttr extends ResAttr {
break; break;
} }
} }
if (ref != null) { if (ref != null && !ref.referentIsNull()) {
value2 = ref.getReferent().getName(); value2 = ref.getReferent().getName();
mItemsCache.put(value, value2); mItemsCache.put(value, value2);
} }