[isidorus-cvs] r853 - branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base

lgiessmann at common-lisp.net lgiessmann at common-lisp.net
Wed Sep 7 15:10:12 UTC 2011


Author: lgiessmann
Date: Wed Sep  7 08:10:11 2011
New Revision: 853

Log:
gdl-frontend: Widgets: fixed a bug in GdlVisibleObject.getOccurrences(...)

Modified:
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java	Wed Sep  7 07:01:38 2011	(r852)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java	Wed Sep  7 08:10:11 2011	(r853)
@@ -221,9 +221,10 @@
 	
 
 	// a helper method that returns all occurrences of the type bound to the passed PSI
+	@SuppressWarnings("unchecked")
 	protected JsArray<Occurrence> getOccurrences(String occurrenceType){
 		Topic occType = tm.getTopicBySubjectIdentifier(tm.createLocator(occurrenceType));
-		if(occType == null) return null;
+		if(occType == null) return (JsArray<Occurrence>)JsArray.createArray();
 		else return tmRepresentative.getOccurrences(occType);
 	}
 




More information about the Isidorus-cvs mailing list