From 841f09b789e58cf83cf9b1c1e279b40936dab898 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 2 Oct 2001 09:49:03 +0000 Subject: [PATCH] check if typename is null in isInstanceOf (which is the case for virtual nodes). --- src/helma/objectmodel/db/DbMapping.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helma/objectmodel/db/DbMapping.java b/src/helma/objectmodel/db/DbMapping.java index 590fdfd8..c90357bf 100644 --- a/src/helma/objectmodel/db/DbMapping.java +++ b/src/helma/objectmodel/db/DbMapping.java @@ -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; }