Skip to content

Commit

Permalink
BZ-995436 - NPE when entry-point is not set for InsertObjectCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
krisv committed Sep 24, 2013
1 parent 0bd9854 commit b71b48d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Expand Up @@ -55,7 +55,7 @@ public class InsertElementsCommand
private boolean returnObject = true;

@XmlAttribute(name="entry-point")
private String entryPoint;
private String entryPoint = "DEFAULT";

public InsertElementsCommand() {
this.objects = new ArrayList<Object>();
Expand Down Expand Up @@ -125,6 +125,9 @@ public String getEntryPoint() {
}

public void setEntryPoint(String entryPoint) {
if (entryPoint == null) {
entryPoint = "DEFAULT";
}
this.entryPoint = entryPoint;
}

Expand Down
Expand Up @@ -137,6 +137,9 @@ public String getEntryPoint() {
}

public void setEntryPoint(String entryPoint) {
if (entryPoint == null) {
entryPoint = "DEFAULT";
}
this.entryPoint = entryPoint;
}

Expand Down
Expand Up @@ -33,8 +33,8 @@ public class UpdateCommand
private static final long serialVersionUID = 3255044102543531497L;

private DisconnectedFactHandle handle;
private Object object;
private String entryPoint;
private Object object;
private String entryPoint = "DEFAULT";

public UpdateCommand() {
}
Expand All @@ -58,6 +58,9 @@ public String getEntryPoint() {
}

public void setEntryPoint(String entryPoint) {
if (entryPoint == null) {
entryPoint = "DEFAULT";
}
this.entryPoint = entryPoint;
}

Expand Down

0 comments on commit b71b48d

Please sign in to comment.