Permalink
Browse files

fix arrayoutofbounds error

  • Loading branch information...
Xlythe committed Feb 4, 2013
1 parent 224223c commit cf23c2ba821a4992de2a6c1b2c96afbebd780b6b
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/com/android2/calculator3/Logic.java
@@ -770,6 +770,9 @@ else if(n.length > o.length) {
private String newBase(String originalNumber, int originalBase, int base) throws SyntaxException {
String[] split = originalNumber.split("\\.");
+ if(split.length == 0) {
+ split = new String[1];
+ }
if(split[0].isEmpty()) {
split[0] = "0";
}

0 comments on commit cf23c2b

Please sign in to comment.