Skip to content

Commit 098acb6

Browse files
committed
deal with readSettings() regression
1 parent 95600ea commit 098acb6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/src/processing/app/Library.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ private Library(File folder, String groupName) {
114114

115115
File exportSettings = new File(libraryFolder, "export.txt");
116116
Map<String,String> exportTable = Base.readSettings(exportSettings);
117+
if (exportTable == null) {
118+
exportTable = new HashMap<>(); // need an empty table below
119+
}
117120

118121
exportList = new HashMap<String, String[]>();
119122

@@ -519,7 +522,7 @@ public ContributionType getType() {
519522
/**
520523
* Returns the object stored in the referenceFile field, which contains an
521524
* instance of the file object representing the index file of the reference
522-
*
525+
*
523526
* @return referenceFile
524527
*/
525528
public File getReferenceIndexFile() {
@@ -529,7 +532,7 @@ public File getReferenceIndexFile() {
529532

530533
/**
531534
* Tests whether the reference's index file indicated by referenceFile exists.
532-
*
535+
*
533536
* @return true if and only if the file denoted by referenceFile exists; false
534537
* otherwise.
535538
*/

0 commit comments

Comments
 (0)