summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Mishra2012-03-15 01:46:19 (EDT)
committerManik Kishore2012-06-19 07:21:21 (EDT)
commit37b03bb79e8302bb998d2c2e06781e8ffa4104f5 (patch)
tree0ac44df61dd58201d7bcff18f9c4b4ea8c0007e9
parent1f296f6998157266ae793fd6346f999bdadaef5e (diff)
downloadorg.eclipse.stardust.ui.web-37b03bb79e8302bb998d2c2e06781e8ffa4104f5.zip
org.eclipse.stardust.ui.web-37b03bb79e8302bb998d2c2e06781e8ffa4104f5.tar.gz
org.eclipse.stardust.ui.web-37b03bb79e8302bb998d2c2e06781e8ffa4104f5.tar.bz2
added Null check to avoid NPE
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@54563 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/process/history/ProcessTreeTable.java30
1 files changed, 16 insertions, 14 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/process/history/ProcessTreeTable.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/process/history/ProcessTreeTable.java
index 716bfa0..1eec6a9 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/process/history/ProcessTreeTable.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/process/history/ProcessTreeTable.java
@@ -265,28 +265,30 @@ public class ProcessTreeTable implements TreeTableBean
*/
private boolean isPriorityModified(ProcessInstanceHistoryItem node)
{
- if (node.getOldPriority() != node.getPriority())
- {
- return true;
- }
-
boolean isPriorityModified = false;
- List<IProcessHistoryTableEntry> childs = node.getChildren();
-
- for (IProcessHistoryTableEntry entry : childs)
+ if (null != node)
{
- if (entry instanceof ProcessInstanceHistoryItem)
+ if (node.getOldPriority() != node.getPriority())
{
- ProcessInstanceHistoryItem item = (ProcessInstanceHistoryItem) entry;
- isPriorityModified = isPriorityModified(item);
+ return true;
+ }
+
+ List<IProcessHistoryTableEntry> childs = node.getChildren();
- if (isPriorityModified)
+ for (IProcessHistoryTableEntry entry : childs)
+ {
+ if (entry instanceof ProcessInstanceHistoryItem)
{
- break;
+ ProcessInstanceHistoryItem item = (ProcessInstanceHistoryItem) entry;
+ isPriorityModified = isPriorityModified(item);
+
+ if (isPriorityModified)
+ {
+ break;
+ }
}
}
}
-
return isPriorityModified;
}