check if typename is null in isInstanceOf (which is the
case for virtual nodes).
This commit is contained in:
parent
de5ab9a388
commit
841f09b789
1 changed files with 2 additions and 2 deletions
|
@ -675,11 +675,11 @@ public class DbMapping implements Updatable {
|
||||||
* by the string argument, either itself or via one of its parent prototypes.
|
* by the string argument, either itself or via one of its parent prototypes.
|
||||||
*/
|
*/
|
||||||
public boolean isInstanceOf (String other) {
|
public boolean isInstanceOf (String other) {
|
||||||
if (typename.equals (other))
|
if (typename != null && typename.equals (other))
|
||||||
return true;
|
return true;
|
||||||
DbMapping p = parentMapping;
|
DbMapping p = parentMapping;
|
||||||
while (p != null) {
|
while (p != null) {
|
||||||
if (p.typename.equals (other))
|
if (p.typename != null && p.typename.equals (other))
|
||||||
return true;
|
return true;
|
||||||
p = p.parentMapping;
|
p = p.parentMapping;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue