check if typename is null in isInstanceOf (which is the

case for virtual nodes).
This commit is contained in:
hns 2001-10-02 09:49:03 +00:00
parent de5ab9a388
commit 841f09b789

View file

@ -675,11 +675,11 @@ public class DbMapping implements Updatable {
* by the string argument, either itself or via one of its parent prototypes.
*/
public boolean isInstanceOf (String other) {
if (typename.equals (other))
if (typename != null && typename.equals (other))
return true;
DbMapping p = parentMapping;
while (p != null) {
if (p.typename.equals (other))
if (p.typename != null && p.typename.equals (other))
return true;
p = p.parentMapping;
}