Skip to content

Commit f01ecea

Browse files
committed
correction for null msg in error handling
1 parent 973cee6 commit f01ecea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/srcjs/js/j2sClazz.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Clazz.assert = function(clazz, obj, tf, msg) {
217217
try {
218218
ok = tf.apply(obj)
219219
if (!ok)
220-
msg = msg.apply(obj);
220+
msg && (msg = msg.apply(obj));
221221
} catch (e) {
222222
ok = false;
223223
}

0 commit comments

Comments
 (0)