File tree 2 files changed +7
-7
lines changed
src/main/java/net/imagej/ui/swing/updater
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 71
71
public class ImageJUpdater implements UpdaterUI {
72
72
private UpdaterFrame main ;
73
73
74
- @ Parameter
74
+ @ Parameter ( required = false )
75
75
private StatusService statusService ;
76
76
77
- @ Parameter
77
+ @ Parameter ( required = false )
78
78
private LogService log ;
79
79
80
- @ Parameter
80
+ @ Parameter ( required = false )
81
81
private UploaderService uploaderService ;
82
82
83
- @ Parameter
83
+ @ Parameter ( required = false )
84
84
private CommandService commandService ;
85
85
86
86
private final static String UPDATER_UPDATING_THREAD_NAME = "Updating the Updater itself!" ;
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ public void run() {
357
357
upload ();
358
358
}
359
359
catch (final InstantiationException e ) {
360
- log .error (e );
360
+ if ( log != null ) log .error (e );
361
361
error ("Could not upload (possibly unknown protocol)" );
362
362
}
363
363
}
@@ -395,7 +395,7 @@ public void setVisible(final boolean visible) {
395
395
} catch (final InterruptedException e ) {
396
396
// ignore
397
397
} catch (final InvocationTargetException e ) {
398
- log .error (e );
398
+ if ( log != null ) log .error (e );
399
399
}
400
400
return ;
401
401
}
@@ -606,7 +606,7 @@ public void install() {
606
606
installer .done ();
607
607
}
608
608
catch (final Exception e ) {
609
- log .error (e );
609
+ if ( log != null ) log .error (e );
610
610
// TODO: remove "update/" directory
611
611
error ("Installer failed: " + e );
612
612
installer .done ();
You can’t perform that action at this time.
0 commit comments