Skip to content

Commit

Permalink
Less exceptions, more null, fixes #382
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 23, 2013
1 parent 8fdd9cf commit 6472a6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/aufdemrand/denizen/objects/Element.java
Expand Up @@ -137,7 +137,7 @@ public String getAttribute(Attribute attribute) {
.getAttribute(attribute.fulfill(1)); }
catch (NumberFormatException e) {
dB.echoError("'" + element + "' is not a valid Integer.");
return null;
return new Element("null").getAttribute(attribute.fulfill(1));
}

// <--
Expand All @@ -150,7 +150,7 @@ public String getAttribute(Attribute attribute) {
.getAttribute(attribute.fulfill(1)); }
catch (NumberFormatException e) {
dB.echoError("'" + element + "' is not a valid Double.");
return null;
return new Element("null").getAttribute(attribute.fulfill(1));
}

// <--
Expand All @@ -165,7 +165,7 @@ public String getAttribute(Attribute attribute) {
.getAttribute(attribute.fulfill(1)); }
catch (NumberFormatException e) {
dB.echoError("'" + element + "' is not a valid Money format.");
return null;
return new Element("null").getAttribute(attribute.fulfill(1));
}
}

Expand Down

0 comments on commit 6472a6e

Please sign in to comment.