diff --git a/sigIRCv2.jar b/sigIRCv2.jar index e662681..2468da0 100644 Binary files a/sigIRCv2.jar and b/sigIRCv2.jar differ diff --git a/src/sig/modules/TouhouMotherModule.java b/src/sig/modules/TouhouMotherModule.java index a292054..a97af78 100644 --- a/src/sig/modules/TouhouMotherModule.java +++ b/src/sig/modules/TouhouMotherModule.java @@ -164,7 +164,7 @@ public class TouhouMotherModule extends Module implements ActionListener{ public void actionPerformed(ActionEvent ev) { //memory = FileUtils.readFromFile(sigIRC.BASEDIR+"memory"); //System.out.println(Arrays.toString(memory)); - memory = new String[19]; + memory = new String[]{"","","","","","","","","","","","","","","","","","",""}; if (foundTouhouMother) { memory[0] = Integer.toString(ReadIntFromBuriedMemoryOffset(0xA2A84,0x6DC,0x2C0,0x8,0x6AC,0x2F0)); diff --git a/src/sig/utils/TextUtils.java b/src/sig/utils/TextUtils.java index a485c68..8377dc9 100644 --- a/src/sig/utils/TextUtils.java +++ b/src/sig/utils/TextUtils.java @@ -33,7 +33,11 @@ public class TextUtils { public static boolean isNumeric(String str) { - return str.matches("-?\\d+(\\.\\d+)?"); //match a number with optional '-' and decimal. + if (str.length()>0) { + return str.matches("-?\\d+(\\.\\d+)?"); //match a number with optional '-' and decimal. + } else { + return false; + } } public static boolean isInteger(String s, int radix) {