Permalink
Browse files

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

  • Loading branch information...
1 parent 0371177 commit 1172f627faaa73db092d9f9409a0ec9854a8d745 @anti43 committed Jan 10, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/mpv5/db/objects/SubItem.java
@@ -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);
}

0 comments on commit 1172f62

Please sign in to comment.