Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update src/mpv5/db/objects/SubItem.java

  • Loading branch information...
commit 1172f627faaa73db092d9f9409a0ec9854a8d745 1 parent 0371177
Andreas Weber authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/mpv5/db/objects/SubItem.java
4 src/mpv5/db/objects/SubItem.java
View
@@ -113,7 +113,9 @@
if (deleteRemovedSubitems) {
for (int i = 0; i < deletionQueue.size(); i++) {
try {
- QueryHandler.delete(SubItem.getObject(Context.getSubItem(), deletionQueue.get(i)));
+ int myid = deletionQueue.get(i);
+ if(myid>0)
+ QueryHandler.delete(SubItem.getObject(Context.getSubItem(), myid));
} catch (NodataFoundException ex) {
Log.Debug(ex);
}
Please sign in to comment.
Something went wrong with that request. Please try again.