tmf: Mark ITmfEventRequest.handleData's parameter as NonNull
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / viewers / events / TmfEventsCache.java
index 9f6fee6c0a991ed8ee2b98348ab55c942e3c7feb..d54ecc1d63c88b153fa6b9cd489ac04c6257afe4 100644 (file)
@@ -349,19 +349,17 @@ public class TmfEventsCache {
                             return;
                         }
                         super.handleData(event);
-                        if (event != null) {
-                            if (((fFilter == null) || fFilter.matches(event)) && (skipCount-- <= 0)) {
-                                synchronized (TmfEventsCache.this) {
-                                    if (monitor.isCanceled()) {
-                                        return;
-                                    }
-                                    fCache[count] = new CachedEvent(event, rank);
-                                    count++;
-                                    fCacheEndIndex++;
-                                }
-                                if (fFilter != null) {
-                                    fTable.cacheUpdated(false);
+                        if (((fFilter == null) || fFilter.matches(event)) && (skipCount-- <= 0)) {
+                            synchronized (TmfEventsCache.this) {
+                                if (monitor.isCanceled()) {
+                                    return;
                                 }
+                                fCache[count] = new CachedEvent(event, rank);
+                                count++;
+                                fCacheEndIndex++;
+                            }
+                            if (fFilter != null) {
+                                fTable.cacheUpdated(false);
                             }
                         }
                         if (count >= fCache.length) {
This page took 0.024805 seconds and 5 git commands to generate.