changeset 613:e3d19d525915

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 14 Dec 2015 23:54:37 -0700
parents bb9a790d8401
children 9ecf5673fb6d
files core/src/luan/modules/TableLuan.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r bb9a790d8401 -r e3d19d525915 core/src/luan/modules/TableLuan.java
--- a/core/src/luan/modules/TableLuan.java	Sun Dec 13 17:44:58 2015 -0700
+++ b/core/src/luan/modules/TableLuan.java	Mon Dec 14 23:54:37 2015 -0700
@@ -33,6 +33,7 @@
 	}
 
 	public static void insert(LuanState luan,LuanTable list,int pos,Object value) throws LuanException {
+		Utils.checkNotNull(luan,list);
 		if( list.getMetatable() != null )
 			throw new LuanException(luan,"can't insert into a table with a metatable");
 		list.rawInsert(pos,value);