Revision: 6657
http://sourceforge.net/p/jump-pilot/code/6657
Author: edso
Date: 2020-12-22 12:34:31 +0000 (Tue, 22 Dec 2020)
Log Message:
-----------
making the dialog more robust in case of exceptions during initialization
Modified Paths:
--------------
core/trunk/src/org/openjump/core/rasterimage/styler/ui/RasterStylesDialog.java
Modified:
core/trunk/src/org/openjump/core/rasterimage/styler/ui/RasterStylesDialog.java
===================================================================
---
core/trunk/src/org/openjump/core/rasterimage/styler/ui/RasterStylesDialog.java
2020-12-22 11:43:18 UTC (rev 6656)
+++
core/trunk/src/org/openjump/core/rasterimage/styler/ui/RasterStylesDialog.java
2020-12-22 12:34:31 UTC (rev 6657)
@@ -57,9 +57,14 @@
this.rasterImageLayer = rasterImageLayer;
this.band = band;
- initComponents();
- fixComponents();
-
+ try {
+ initComponents();
+ fixComponents();
+ } catch (Exception e) {
+ // survive exception during initialization
+ Logger.error(e);
+ context.getErrorHandler().handleThrowable(e);
+ }
}
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel