File tree Expand file tree Collapse file tree
app/src/processing/app/contrib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -619,16 +619,21 @@ public boolean accept(File folder) {
619619 }
620620 });
621621
622- for (File file : installList ) {
623- for (AvailableContribution contrib : listing .advertisedContributions ) {
624- if (file .getName ().equals (contrib .getName ())) {
625- file .delete ();
626- installOnStartUp (base , contrib );
627- EventQueue .invokeAndWait (() -> {
628- listing .replaceContribution (contrib , contrib );
629- });
622+ // https://github.com/processing/processing/issues/5823
623+ if (installList != null ) {
624+ for (File file : installList ) {
625+ for (AvailableContribution contrib : listing .advertisedContributions ) {
626+ if (file .getName ().equals (contrib .getName ())) {
627+ file .delete ();
628+ installOnStartUp (base , contrib );
629+ EventQueue .invokeAndWait (() -> {
630+ listing .replaceContribution (contrib , contrib );
631+ });
632+ }
630633 }
631634 }
635+ } else {
636+ System .err .println ("Could not read " + root );
632637 }
633638 }
634639
You can’t perform that action at this time.
0 commit comments