Skip to content
Browse files

null pointers, go away

  • Loading branch information...
1 parent cf23c2b commit 3b59ac71fe6d8da3382b22f9d1d78b8f1c1e73e3 @Xlythe committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/com/android2/calculator3/Logic.java
View
1 src/com/android2/calculator3/Logic.java
@@ -772,6 +772,7 @@ private String newBase(String originalNumber, int originalBase, int base) throws
String[] split = originalNumber.split("\\.");
if(split.length == 0) {
split = new String[1];
+ split[0] = "0";
}
if(split[0].isEmpty()) {
split[0] = "0";

0 comments on commit 3b59ac7

Please sign in to comment.
Something went wrong with that request. Please try again.