Permalink
Browse files

Fix a possible NPE

  • Loading branch information...
TheDgtl committed Feb 25, 2011
1 parent 093e268 commit 2ea0d8578930e0e4d139391697ad558bd578983a
Showing with 4 additions and 1 deletion.
  1. +2 −0 README
  2. +1 −0 src/net/TheDgtl/iChat/iChat.java
  3. +1 −1 src/plugin.yml
View
2 README
@@ -49,6 +49,8 @@ message-format - The message format as described above
=============
Changes
=============
+[Version 2.02]
+ - Fix a NPE someone was getting
[Version 2.01]
- There's a bug in Permissions 2.1 in getPermissionString, switched to getUserPermissionString
[Version 2.00]
@@ -126,6 +126,7 @@ public String parse(String format, String[] search, String[] replace) {
for (int i = 0; i < search.length; i++) {
if (search[i].contains(",")) {
for (String s : search[i].split(",")) {
+ if (s == null || replace[i] == null) continue;
format = format.replace(s, replace[i]);
}
} else {
View
@@ -1,3 +1,3 @@
name: iChat
main: net.TheDgtl.iChat.iChat
-version: 2.01
+version: 2.02

0 comments on commit 2ea0d85

Please sign in to comment.