Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Molinaro
tap_schema_manager
Commits
93bb5141
Commit
93bb5141
authored
Mar 11, 2021
by
Sonia Zorba
Browse files
openLoaded method NPE check
parent
644b2ade
Pipeline
#1159
passed with stages
in 1 minute and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
TASMAN-webapp/src/main/java/it/inaf/ia2/tsm/webapp/TapSchemaLoader.java
View file @
93bb5141
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment