Skip to content

Commit c7b8758

Browse files
author
john0005
committed
Took exception off stop method
1 parent 221a216 commit c7b8758

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/esri/samples/raster/raster_layer_geopackage/RasterLayerGeoPackageSample.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ public void start(Stage stage) throws Exception {
5151
stage.setScene(scene);
5252
stage.show();
5353

54-
mapView = new MapView();
55-
5654
// create a map with light gray canvas vector basemap
5755
ArcGISMap map = new ArcGISMap(Basemap.createLightGrayCanvasVector());
56+
mapView = new MapView();
5857
mapView.setMap(map);
5958

6059
// create a geopackage from a local gpkg file
@@ -87,7 +86,6 @@ public void start(Stage stage) throws Exception {
8786
}
8887
});
8988

90-
9189
// add the map view to stack pane
9290
stackPane.getChildren().addAll(mapView);
9391
} catch (Exception e) {
@@ -100,7 +98,7 @@ public void start(Stage stage) throws Exception {
10098
* Stops and releases all resources used in application.
10199
*/
102100
@Override
103-
public void stop() throws Exception {
101+
public void stop() {
104102

105103
if (mapView != null) {
106104
mapView.dispose();

0 commit comments

Comments
 (0)