Mercurial > hg > Applications > TreeVNC
diff src/viewer_swing/java/com/glavsoft/viewer/Viewer.java @ 366:2d83bea06f00
Check connectionPresenter
author | innparusu |
---|---|
date | Mon, 10 Aug 2015 20:13:52 +0900 |
parents | bc5624e3e9c5 |
children | b60780e1fafc |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Mon Aug 10 18:47:38 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Mon Aug 10 20:13:52 2015 +0900 @@ -413,6 +413,7 @@ @Override public void setVisible(boolean b) { + if(connectionPresenter == null) return; SwingViewerWindow v = connectionPresenter.getViewer(); if (v != null) v.setVisible(b);