tmf: Fix pessimistic null analysis of wildcard parameter
authorPatrick Tasse <patrick.tasse@gmail.com>
Wed, 9 Nov 2016 21:47:28 +0000 (16:47 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Thu, 10 Nov 2016 17:02:19 +0000 (12:02 -0500)
Unconstrained generic parameter is assumed to be nullable and its
unchecked access is reported as an error with Eclipse 4.7.

Change-Id: Ib7ac039a2d407fbfef1acfb0802043353668deb9
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/84768
Reviewed-by: Hudson CI
Reviewed-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/dialogs/ShowFilterDialogAction.java

index cc96bfcfefd46c272a5ec2f5fa62843824e855df..d38bf45e517bc9103c52ff31d8fd6c960f0884cf 100644 (file)
@@ -173,7 +173,7 @@ public class ShowFilterDialogAction extends Action {
         ArrayList<ITimeGraphEntry> items = new ArrayList<>();
         for (ITimeGraphEntry entry : inputs) {
             items.add(entry);
-            if (entry.hasChildren()) {
+            if (entry != null && entry.hasChildren()) {
                 items.addAll(listAllInputs(entry.getChildren()));
             }
         }
This page took 0.025209 seconds and 5 git commands to generate.