Ignore:
Timestamp:
04/16/19 11:02:59 (5 years ago)
Author:
bln4
Message:

Alteration to previous commit. Had previously made it so that the owner of a item could inject any property regardless of permission. This has been changed to the owner of the item being able to inject specifically a new permission regardless of permission.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameIO.java

    r1316 r1317  
    3838import java.nio.file.StandardCopyOption;
    3939import java.sql.Time;
     40import java.util.ArrayList;
    4041import java.util.Arrays;
    4142import java.util.Collection;
     
    433434         */
    434435        public static List<String> getProfilesList() {
    435                 List<File> potentialProfiles = Arrays.asList(new File(FrameIO.PROFILE_PATH).listFiles());
     436                File[] listFiles = new File(FrameIO.PROFILE_PATH).listFiles();
     437                if (listFiles == null) return new ArrayList<String>();
     438                List<File> potentialProfiles = Arrays.asList(listFiles);
    436439                potentialProfiles.removeIf(file -> !file.isDirectory());
    437440                return potentialProfiles.stream().map(dir -> dir.getName()).collect(Collectors.toList());
Note: See TracChangeset for help on using the changeset viewer.