Changeset 841


Ignore:
Timestamp:
02/05/14 15:25:58 (10 years ago)
Author:
jts21
Message:

Fix random NullPointerException on copy/pasting (apparently one of the items in the list of items to copy was somehow null, which of course resulted in NullPointerExceptions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/ItemUtils.java

    r838 r841  
    468468                for (Item i : toCopy) {
    469469                        // Dont copy parts of a vector
    470                         if (!i.hasPermission(UserAppliedPermission.copy))
     470                        if (i == null || !i.hasPermission(UserAppliedPermission.copy))
    471471                                continue;
    472472
Note: See TracChangeset for help on using the changeset viewer.