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 / CustomXmlParserOutputWizardPage.java
index a74ab58d75ab640ba28de5250c3e1f30d70beb35..bcf746899f28c168b6bcc5e3350901ba90faaffc 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;
@@ -263,7 +265,7 @@ public class CustomXmlParserOutputWizardPage 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.026395 seconds and 5 git commands to generate.