Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kayila committed Oct 30, 2019
1 parent c57ae6a commit 3f5102f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/main/java/net/rptools/maptool/client/ui/MapToolFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,9 @@ private void configureDocking() {
getDockingManager()
.loadLayoutDataFromFile(AppUtil.getAppHome("config").getAbsolutePath() + "/layout.dat");
} catch (IllegalArgumentException e) {
// This error sometimes comes up when using three monitors due to a bug in the java jdk
// incorrectly
// reporting screen size as zero.
MapTool.showError("msg.error.layoutParse", e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,10 +595,10 @@ private void refresh() {
MapTool.getFrame().getAssetPanel().updateGlobalSearchLabel(fileList.size());
} catch (NullPointerException e) {
// This currently throws a NPE if the frame was not finished initializing when runs. For now,
// lets log a message
// and continue.
// lets log a message and continue.
log.warn(
"NullPointerException encountered while trying to update ImageFileImagePanelModel global search label", e);
"NullPointerException encountered while trying to update ImageFileImagePanelModel global search label",
e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private void updateInternal() {
}
} catch (NullPointerException e) {
// This seems to happen when there was a problem creating the initial window. Lets just
// ignore this filter for now
// ignore this filter for now.
log.warn("NullPointerException encountered while trying to update TokenPanelTreeModel", e);
continue;
}
Expand Down

0 comments on commit 3f5102f

Please sign in to comment.