Fix NPE
This commit is contained in:
@@ -56,7 +56,7 @@ public class MySQL {
|
||||
}
|
||||
|
||||
public String escapeString(String text) {
|
||||
return text.replace("'", "\\'");
|
||||
return text == null ? "" : text.replace("'", "\\'");
|
||||
}
|
||||
|
||||
private Boolean openConnection() {
|
||||
|
||||
Reference in New Issue
Block a user