diff core/src/luan/modules/StringLuan.java @ 702:87970832a3c3

improve Http_test
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 04 May 2016 20:45:40 -0600
parents b21d82ee5756
children e1dfeddfbc7b
line wrap: on
line diff
--- a/core/src/luan/modules/StringLuan.java	Wed May 04 17:49:41 2016 -0600
+++ b/core/src/luan/modules/StringLuan.java	Wed May 04 20:45:40 2016 -0600
@@ -233,7 +233,8 @@
 		return null;
 	}
 
-	public static boolean matches(String s,String pattern) {
+	public static boolean matches(String s,String pattern) throws LuanException {
+		Utils.checkNotNull(s);
 		return Pattern.compile(pattern).matcher(s).find();
 	}