Commit 7b3df357 authored by Guus der Kinderen's avatar Guus der Kinderen Committed by akrherz

OF-1311: Don't assume values are Strings.

parent 0f0796d2
......@@ -320,7 +320,12 @@ public class AuditManagerImpl extends BasicModule implements AuditManager, Prope
@Override
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) {
case "xmpp.audit.active":
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