Skip to content

Commit

Permalink
[JBIDE-24025] returning null when there's no application (was: assertion
Browse files Browse the repository at this point in the history
error)
  • Loading branch information
adietish committed Apr 3, 2017
1 parent 01b32f1 commit 8869d16
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ private static String getUsername(IServerAttributes attributes) {
}

public static ConnectionURL getConnectionUrl(IServerAttributes attributes) {
if (attributes == null) {
return null;
}
try {
String connectionUrlString = getProjectAttribute(
SETTING_CONNECTIONURL,
Expand Down Expand Up @@ -288,6 +291,9 @@ public static String getDefaultDeployFolder(IServerAttributes server) {
}

public static String getDefaultDeployFolder(IApplication application) {
if (application == null) {
return null;
}
Assert.isNotNull(application);
DeployFolder deployFolder = DeployFolder.getByCartridgeName(application.getCartridge().getName());
if (deployFolder == null) {
Expand Down

0 comments on commit 8869d16

Please sign in to comment.