Skip to content

Commit

Permalink
empty or null values should not be matched
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Dec 26, 2015
1 parent f932394 commit 13b3990
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ protected void serializeExtraXmlAttrs(XmlSerializer serializer, ResResource res)
}

private String checkIfStringIsNumeric(String val) {
if (val == null || val.isEmpty()) {
return val;
}
return allDigits.matcher(val).matches() ? "\\ " + val : val;
}

Expand Down

0 comments on commit 13b3990

Please sign in to comment.