tmf xml: Add a few package-info to tmf.analysis.xml.core.model.*
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.analysis.xml.ui / src / org / eclipse / tracecompass / internal / tmf / analysis / xml / ui / views / xychart / XmlXYViewer.java
index b102158df0189f56b64bdda5e01e19c1f43335a0..1b6d42d19322173eba81386acab8cea1d954ee7c 100644 (file)
@@ -396,12 +396,18 @@ public class XmlXYViewer extends TmfCommonXLineChartViewer {
             return;
         }
         Element displayElement = displayElements.get(0);
+        if (displayElement == null) {
+            throw new IllegalStateException();
+        }
         fDisplay = fFactory.createStateAttribute(displayElement, entry);
 
         /* Get the series name element to use */
         List<Element> seriesNameElements = XmlUtils.getChildElements(entryElement, TmfXmlUiStrings.NAME_ELEMENT);
         if (!seriesNameElements.isEmpty()) {
             Element seriesNameElement = seriesNameElements.get(0);
+            if (seriesNameElement == null) {
+                throw new IllegalStateException();
+            }
             fSeriesName = fFactory.createStateAttribute(seriesNameElement, entry);
         }
 
This page took 0.02654 seconds and 5 git commands to generate.