Skip to content

Commit

Permalink
Fixed empty list bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cgueret committed May 16, 2012
1 parent 1807eb2 commit a5a6ff2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/IDSWrapper/src/uk/ac/ids/linker/Linker.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ private List<Reference> getFromCache(LinkerParameters parameters) throws EntityN
throw new EntityNotFoundException(null);

// De-serialize the data
List<Reference> results = new ArrayList<Reference>();
@SuppressWarnings("unchecked")
List<String> uris = (List<String>) entity.getProperty(RESOURCE_PROPERTY);
List<Reference> results = new ArrayList<Reference>();
for (String uri : uris)
results.add(new Reference(uri));
if (uris != null)
for (String uri : uris)
results.add(new Reference(uri));
return results;
}

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit a5a6ff2

Please sign in to comment.