Skip to content

Commit

Permalink
Parse dataset value as Integer
Browse files Browse the repository at this point in the history
  • Loading branch information
dersmon committed Oct 2, 2024
1 parent b08fe14 commit 1c228e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void addImages(final Dataset dataset) {
image.setImageId(arachneId.getArachneEntityID());
String fileName = dataset.getField("marbilder.DateinameMarbilder");
image.setImageSubtitle(fileName.substring(0, fileName.lastIndexOf('.')));
image.setEntityOrder(dataset.getField("marbilder.EntityOrder"));
image.setEntityOrder(Integer.parseInt(dataset.getField("marbilder.EntityOrder")));
final List<Image> imageList = new ArrayList<Image>();
imageList.add(image);
dataset.setImages(imageList);
Expand Down

0 comments on commit 1c228e1

Please sign in to comment.