diff options
author | ddunne | 2008-07-03 20:49:34 +0000 |
---|---|---|
committer | ddunne | 2008-07-03 20:49:34 +0000 |
commit | df022356d89dbe5a2fee1236d30b2b52dae76162 (patch) | |
tree | 8aa2a4eaac17fbff2ff233cab2f0d45fd4df1491 | |
parent | 0f9558f2a730308d6e05af0621edcb9549c90059 (diff) | |
download | org.eclipse.osee-df022356d89dbe5a2fee1236d30b2b52dae76162.tar.gz org.eclipse.osee-df022356d89dbe5a2fee1236d30b2b52dae76162.tar.xz org.eclipse.osee-df022356d89dbe5a2fee1236d30b2b52dae76162.zip |
-rw-r--r-- | MS_0.2.0_20080619/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/AtsStateItems.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/MS_0.2.0_20080619/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/AtsStateItems.java b/MS_0.2.0_20080619/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/AtsStateItems.java index ee14205f37c..3817eec4f50 100644 --- a/MS_0.2.0_20080619/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/AtsStateItems.java +++ b/MS_0.2.0_20080619/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/AtsStateItems.java @@ -37,7 +37,7 @@ public class AtsStateItems { return items; } - public List<IAtsStateItem> getCurrentPageStateItems(SMAManager smaMgr)throws OseeCoreException, SQLException{ + public List<IAtsStateItem> getCurrentPageStateItems(SMAManager smaMgr) throws OseeCoreException, SQLException { return getStateItems(smaMgr.getWorkPageDefinition().getId()); } @@ -63,12 +63,16 @@ public class AtsStateItems { try { Class taskClass = bundle.loadClass(classname); Object obj = taskClass.newInstance(); - stateItems.add((IAtsStateItem) obj); + if (obj == null) { + OSEELog.logException(AtsPlugin.class, + "Error Instantiating AtsStateItem extension \"" + classname + "\"", null, false); + } else { + stateItems.add((IAtsStateItem) obj); + } } catch (Exception ex) { OSEELog.logException(AtsPlugin.class, "Error loading AtsStateItem extension", ex, true); } } - } } } |