OtherDrops

226k Downloads

Make DropEvent.getConfiguration() create a new node if it doesn't exist

Zarius opened this issue ยท 5 comments

commented
commented

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);
commented

Sigh. Just replace EMPTY_MAP with a constructor call; "new HashMap<String,Object>()", probably.

commented

Nope, haven't looked into this yet.

commented

Did you fix this yet?

commented

Did it awhile ago; closing.