changeset 1108:f12c7cab0e14

fix handling of missing java class
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 18 Jul 2017 17:54:47 -0600
parents 590437ce0be3
children 8c999ab85e33
files src/luan/modules/PackageLuan.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r 590437ce0be3 -r f12c7cab0e14 src/luan/modules/PackageLuan.java
--- a/src/luan/modules/PackageLuan.java	Tue Jul 04 02:41:03 2017 -0600
+++ b/src/luan/modules/PackageLuan.java	Tue Jul 18 17:54:47 2017 -0600
@@ -45,6 +45,8 @@
 		if( mod == null ) {
 			if( modName.startsWith("java:") ) {
 				mod = JavaLuan.load(luan,modName.substring(5));
+				if( mod == null )
+					mod = Boolean.FALSE;
 			} else {
 				String src = read(luan,modName);
 				if( src == null ) {