Changeset 12352


Ignore:
Timestamp:
01/08/10 21:32:02 (13 years ago)
Author:
astalla
Message:

Have JavaObject?.javaInstance(c) complain if the wrapped object is null and c is a primitive type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/JavaObject.java

    r12351 r12352  
    237237    public Object javaInstance(Class c) {
    238238  if(obj == null) {
     239      if(c.isPrimitive()) {
     240    throw new NullPointerException("Cannot assign null to " + c);
     241      }
    239242      return obj;
    240243  } else {
Note: See TracChangeset for help on using the changeset viewer.