Permalink
Browse files

Fix broken CLI importer. (See #8627)

  • Loading branch information...
1 parent e32ad97 commit 5da0276d205fc32d5467d4e9557318d2a89b1045 @chris-allan committed Apr 26, 2012
@@ -582,7 +582,7 @@ public void initialize(String username, String password,
* server.
*/
public void initialize(String username, String password,
- String server, int port, long group, boolean isSecure)
+ String server, int port, Long group, boolean isSecure)
throws CannotCreateSessionException, PermissionDeniedException, ServerError
{
secure(server, port);
@@ -214,7 +214,7 @@ public synchronized void load() {
};
sessionKey = new StrValue("session", this);
- group = new LongValue("group", this, 0L);
+ group = new LongValue("group", this, null);
doThumbnails = new BoolValue("doThumbnails", this, true);
email = new StrValue("email", this);
serverList = new StrValue("serverList", this);
@@ -223,7 +223,7 @@ public synchronized void load() {
plateName = new StrValue("plateName", this);
plateDescription = new StrValue("plateDescription", this);
targetClass = new StrValue("targetClass", this);
- targetId = new LongValue("targetId", this, 0);
+ targetId = new LongValue("targetId", this, 0L);
savedProject = new LongValue("savedProject", this, 0L);
savedDataset = new LongValue("savedDataset", this, 0L);
@@ -983,8 +983,8 @@ protected Integer fromString(String arg0) {
}
public static class LongValue extends Value<Long> {
- public LongValue(String key, ImportConfig config, long defValue) {
- super(key, config, Long.valueOf(defValue));
+ public LongValue(String key, ImportConfig config, Long defValue) {
+ super(key, config, defValue);
}
@Override

1 comment on commit 5da0276

Seems fine.

Please sign in to comment.