tmf: annotate TmfContext#location as nullable
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / trace / text / TextTrace.java
index 8c13d91e489ab9247cbd9fcba77ae38bd2b37f0c..48d14770308f6b2553dcce2b2444a53074357b89 100644 (file)
@@ -275,7 +275,8 @@ public abstract class TextTrace<T extends TextTraceEvent> extends TmfTrace imple
             return null;
         }
         TextTraceContext context = tmfContext;
-        if (context.getLocation() == null || !(context.getLocation().getLocationInfo() instanceof Long) || NULL_LOCATION.equals(context.getLocation())) {
+        ITmfLocation location = context.getLocation();
+        if (location == null || !(location.getLocationInfo() instanceof Long) || NULL_LOCATION.equals(location)) {
             return null;
         }
 
This page took 0.024224 seconds and 5 git commands to generate.