avoid NPE in regex checker

pull/1/head
orbiter 12 years ago
parent 24bcf54100
commit 5d442dad82

@ -40,6 +40,7 @@ public final class RegexHelper {
* @return true if the expression is a valid regular expression, else false
*/
public static boolean isValidRegex(final String expression) {
if (expression == null) return false;
boolean ret = true;
try {
Pattern.compile(expression);

Loading…
Cancel
Save