lttng: Enable null-checking in test plugins
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ctf.core.tests / src / org / eclipse / linuxtools / tmf / ctf / core / tests / tracemanager / TmfTraceManagerTest.java
index 0cc1b9057e1676fc61a16f14f54730e3906bcab7..7345d72e2ec353f883b3ceed6d95ad2b1d98c87c 100644 (file)
@@ -114,11 +114,17 @@ public class TmfTraceManagerTest {
     // ------------------------------------------------------------------------
 
     private void openTrace(ITmfTrace trace) {
+        if (trace == null) {
+            throw new IllegalArgumentException();
+        }
         TmfSignalManager.dispatchSignal(new TmfTraceOpenedSignal(this, trace, null));
         selectTrace(trace);
     }
 
     private void closeTrace(ITmfTrace trace) {
+        if (trace == null) {
+            throw new IllegalArgumentException();
+        }
         TmfSignalManager.dispatchSignal(new TmfTraceClosedSignal(this, trace));
         /*
          * In TMF, the next tab would now be selected (if there are some), which
This page took 0.024789 seconds and 5 git commands to generate.