[isidorus-cvs] r861 - branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base
lgiessmann at common-lisp.net
lgiessmann at common-lisp.net
Fri Sep 9 16:22:06 UTC 2011
Author: lgiessmann
Date: Fri Sep 9 09:22:05 2011
New Revision: 861
Log:
gdl-frontend: Widgets: fixed a a potential bug in TmHelper
Modified:
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TmHelper.java
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TmHelper.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TmHelper.java Fri Sep 9 08:27:42 2011 (r860)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TmHelper.java Fri Sep 9 09:22:05 2011 (r861)
@@ -235,7 +235,7 @@
// returns true if the instance topic is an instance of the topic bound to typeSubectIdentifier
public static boolean isInstanceOf(Topic instance, String typeSubjectIdentifier){
- if(instance == null) return false;
+ if(instance == null || typeSubjectIdentifier == null) return false;
TopicMap tm = instance.getTopicMap();
Topic type = tm.getTopicBySubjectIdentifier(tm.createLocator(typeSubjectIdentifier));
return isInstanceOf(instance, type);
More information about the Isidorus-cvs
mailing list