Skip to content
Snippets Groups Projects
Commit 8d88343a authored by brinn's avatar brinn
Browse files

fix: avoid NPE if the properties object has not been set

SVN: 11958
parent d822a402
No related merge requests found
...@@ -132,7 +132,7 @@ public final class Principal extends AbstractHashable implements Serializable ...@@ -132,7 +132,7 @@ public final class Principal extends AbstractHashable implements Serializable
*/ */
public final String getProperty(final String key) public final String getProperty(final String key)
{ {
return properties.get(key); return (properties != null) ? properties.get(key) : null;
} }
/** Retuns an unmodifiable <code>Set</code> of present properties. */ /** Retuns an unmodifiable <code>Set</code> of present properties. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment