tmf: Make custom trace output column name @NonNull
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / internal / tmf / ui / parsers / wizards / CustomTxtParserOutputWizardPage.java
index aea1ac827bfe3880812a74924d97dcd010c61877..2a637b95615e1e96f9e0855b250987e9c3d3c9f9 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2010, 2014 Ericsson
+ * Copyright (c) 2010, 2015 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -12,6 +12,8 @@
 
 package org.eclipse.tracecompass.internal.tmf.ui.parsers.wizards;
 
+import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull;
+
 import java.io.File;
 import java.io.FileWriter;
 import java.io.IOException;
@@ -262,7 +264,7 @@ public class CustomTxtParserOutputWizardPage extends WizardPage {
             final Output output = outputs.get(i);
             if (output.enabledButton.getSelection()) {
                 final OutputColumn column = new OutputColumn();
-                column.name = output.nameLabel.getText();
+                column.name = checkNotNull(output.nameLabel.getText());
                 outputColumns.add(column);
             }
         }
This page took 0.025919 seconds and 5 git commands to generate.