Commit 560261c1 authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #783 from guusdk/OF-1311_List-property

OF-1311: Don't assume values are Strings.
parents 971a23aa 49c86dbb
...@@ -316,7 +316,12 @@ public class AuditManagerImpl extends BasicModule implements AuditManager, Prope ...@@ -316,7 +316,12 @@ public class AuditManagerImpl extends BasicModule implements AuditManager, Prope
@Override @Override
public void propertySet(String property, Map<String, Object> params) { public void propertySet(String property, Map<String, Object> params) {
String value = (String) params.get("value"); final Object val = params.get("value");
if (!( val instanceof String ))
{
return;
}
String value = (String) val;
switch (property) { switch (property) {
case "xmpp.audit.active": case "xmpp.audit.active":
enabled = Boolean.parseBoolean(value); enabled = Boolean.parseBoolean(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment