package org.eclipse.tracecompass.tmf.analysis.xml.ui.module;
+import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull;
+
import java.io.File;
import java.util.Collections;
import java.util.List;
@Override
public String getId() {
- return fSourceElement.getAttribute(TmfXmlStrings.ID);
+ /*
+ * The attribute ID cannot be null because the XML has been validated
+ * and it is mandatory
+ */
+ return checkNotNull(fSourceElement.getAttribute(TmfXmlStrings.ID));
}
@Override