Skip to content

Commit 4f36f91

Browse files
committed
Avoid issues with null in tests
1 parent 5243757 commit 4f36f91

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

SpiNNaker-front-end/src/main/java/uk/ac/manchester/spinnaker/front_end/BoardLocalSupport.java

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ private List<ConnectionDescriptor> generateScampConnections() {
9898
}
9999

100100
protected SpallocClient.Job getJob() throws IOException, StorageException {
101+
if (storage == null) {
102+
return null;
103+
}
101104
return getJobFromProxyInfo(storage.getProxyInformation());
102105
}
103106

SpiNNaker-front-end/src/main/java/uk/ac/manchester/spinnaker/front_end/dse/ExecuteDataSpecification.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public abstract class ExecuteDataSpecification extends BoardLocalSupport
7272
protected ExecuteDataSpecification(Machine machine, DSEDatabaseEngine db)
7373
throws IOException, ProcessException, InterruptedException,
7474
StorageException, URISyntaxException {
75-
super(db.getStorageInterface(), machine);
75+
super(db == null? null: db.getStorageInterface(), machine);
7676
this.db = db;
7777
this.executor = new BasicExecutor(PARALLEL_SIZE);
7878
}

0 commit comments

Comments
 (0)