Skip to content

Commit

Permalink
SubstrateConstantReflectionProvider#readFieldValue must not propagate…
Browse files Browse the repository at this point in the history
… IllegalArgumentException
  • Loading branch information
olpaw committed Apr 19, 2018
1 parent 3fdba1a commit 471e739
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ private static JavaConstant readFieldValue(SubstrateField field, JavaConstant re
}

assert SubstrateObjectConstant.asObject(base) != null;
return SubstrateMemoryAccessProviderImpl.SINGLETON.readUnsafeConstant(field.type.getStorageKind(), base, field.location);
try {
return SubstrateMemoryAccessProviderImpl.SINGLETON.readUnsafeConstant(field.type.getStorageKind(), base, field.location);
} catch (IllegalArgumentException e) {
return null;
}
}
}

0 comments on commit 471e739

Please sign in to comment.