Skip to content

Commit

Permalink
GH-608 'entriesObj' can be null in case the system properties are rep…
Browse files Browse the repository at this point in the history
…resended by a custom subclass of java.util.Properties
  • Loading branch information
thurka committed Oct 1, 2024
1 parent d7fb537 commit 32ae938
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ static Properties getProperties(Instance propertiesInstance) {
Instance map = (Instance) propertiesInstance.getValueOfField("map"); // NOI18N
if (map != null) {
entriesObj = (ObjectArrayDump) map.getValueOfField("table"); // NOI18N
return getPropertiesFromTable(entriesObj, props, "key", "val"); // NOI18N
if (entriesObj != null) {
return getPropertiesFromTable(entriesObj, props, "key", "val"); // NOI18N
}
} else { // old Hashtable
entriesObj = (ObjectArrayDump) propertiesInstance.getValueOfField("elementData"); // NOI18N
if (entriesObj != null) {
Expand Down

0 comments on commit 32ae938

Please sign in to comment.