X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics%2Fsrc%2Forg%2Fsimantics%2FBaselineCreatorApplication.java;h=a3b409027a0c314354a3e172eac62163094b8be0;hp=d0b8e69492ff44c274077fffcc7940f646029dc5;hb=69d8f2b115a832560eca0d56903c8977178b71ab;hpb=9ea5cf59a4d87c3db3a486e86d7b54efffd5516d diff --git a/bundles/org.simantics/src/org/simantics/BaselineCreatorApplication.java b/bundles/org.simantics/src/org/simantics/BaselineCreatorApplication.java index d0b8e6949..a3b409027 100644 --- a/bundles/org.simantics/src/org/simantics/BaselineCreatorApplication.java +++ b/bundles/org.simantics/src/org/simantics/BaselineCreatorApplication.java @@ -61,12 +61,7 @@ public class BaselineCreatorApplication implements IApplication { private static Path getInstanceLocation() throws CoreException, IOException { Location l = Platform.getInstanceLocation(); - if (l == null) - throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, - "Workspace not defined. Use -data argument to define where to place the baselining workspace.")); - - Location instanceLoc = Platform.getInstanceLocation(); - if (instanceLoc == null || instanceLoc.isReadOnly()) + if (l == null || l.isReadOnly()) throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Workspace not defined. Use -data argument to define where to place the baselining workspace."));