Commit 93bb5141 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

openLoaded method NPE check

parent 644b2ade
Pipeline #1159 passed with stages
in 1 minute and 4 seconds
......@@ -184,6 +184,12 @@ public class TapSchemaLoader implements Serializable {
}
public String openLoaded() {
if (loadedTapSchema == null) {
throw new IllegalStateException("Attempted to access a TAP_SCHEMA not loaded yet. "
+ "This may be caused by an error on frontend or a browser cache issue.");
}
ConsistencyChecks checks = loadedTapSchema.getConsistencyChecks();
if (checks != null && (checks.isInconsistent() || checks.isHasWarnings())) {
consistencyChecksBean.setTapSchema(loadedTapSchema);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment