Make DropEvent.getConfiguration() create a new node if it doesn't exist
Zarius opened this issue ยท 5 comments
Fix in 6caeeb3 but doesn't quite work:
// TODO: fix? The following line fails with java.lang.UnsupportedOperationException
// if events property didn't exist (ie. is set as EMPTY_MAP by loadConfig()).
// Works fine if events property exists in globalconfig file.
events.setProperty(name, Collections.EMPTY_MAP);
Sigh. Just replace EMPTY_MAP with a constructor call; "new HashMap<String,Object>()", probably.