1h Fix container remove method
This commit is contained in:
parent
e10267d30f
commit
e2e5ad35cf
@ -66,8 +66,10 @@ public class CommandEditContainerRemove<O, V> extends CommandEditContainerAbstra
|
|||||||
public void alterMap(Map<?, ?> elements) throws MassiveException
|
public void alterMap(Map<?, ?> elements) throws MassiveException
|
||||||
{
|
{
|
||||||
// Args
|
// Args
|
||||||
Object key = this.readArg();
|
Object element = this.readElement();
|
||||||
Object value = this.readArg();
|
Entry<?, ?> entry = (Entry<?, ?>) element;
|
||||||
|
Object key = entry.getKey();
|
||||||
|
Object value = entry.getValue();
|
||||||
|
|
||||||
// Validate
|
// Validate
|
||||||
if (key == null && value == null) throw new MassiveException().addMsg("<b>Please supply key and/or value.");
|
if (key == null && value == null) throw new MassiveException().addMsg("<b>Please supply key and/or value.");
|
||||||
|
Loading…
Reference in New Issue
Block a user