Skip to content

Commit

Permalink
TEIIDDES-2818
Browse files Browse the repository at this point in the history
 * added check for null table reference
 * throwing exception with IStatus if null
 * error message dialog displayed warning the user to set the value and
relaunch preview data.
  • Loading branch information
blafond committed Jun 29, 2017
1 parent d23f835 commit 1500882
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.dialogs.ProgressMonitorDialog;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.osgi.util.NLS;
Expand Down Expand Up @@ -108,8 +109,12 @@ public IStatus getDynamicVdbStatus() throws ModelWorkspaceException {
try {
generateDynamicVdb();
} catch (ModelWorkspaceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
if( e.getModelStatus().getSeverity() == IStatus.ERROR &&
e.getModelStatus().getCode() == 9991 ) {
dynamicVdbStatus = e.getModelStatus();
} else {
e.printStackTrace();
}
}
}
return dynamicVdbStatus;
Expand Down

0 comments on commit 1500882

Please sign in to comment.