密猟オンラインクライアントプログラム JAVAベース
起動直後にシャットダウンが発生したときなどに存在していないウィンドウへアクセスしようとして例外が発生するのを修正
| @@ -810,13 +810,19 @@ | ||
| 810 | 810 | public static void shutdown() { |
| 811 | 811 | Frame wnd; |
| 812 | 812 | wnd = (Frame) Hunt.getMessageView(); |
| 813 | - messageViewBounds = wnd.getBounds(); | |
| 814 | - wnd.dispose(); | |
| 813 | + if (wnd != null) { | |
| 814 | + messageViewBounds = wnd.getBounds(); | |
| 815 | + wnd.dispose(); | |
| 816 | + } | |
| 815 | 817 | wnd = (Frame) Hunt.getStatusView(); |
| 816 | - statusViewBounds = wnd.getBounds(); | |
| 817 | - wnd.dispose(); | |
| 818 | - mainWndBounds = mainWnd.getBounds(); | |
| 819 | - mainWnd.dispose(); | |
| 818 | + if (wnd != null) { | |
| 819 | + statusViewBounds = wnd.getBounds(); | |
| 820 | + wnd.dispose(); | |
| 821 | + } | |
| 822 | + if (mainWnd != null) { | |
| 823 | + mainWndBounds = mainWnd.getBounds(); | |
| 824 | + mainWnd.dispose(); | |
| 825 | + } | |
| 820 | 826 | rtask.terminate_task(); |
| 821 | 827 | save(); |
| 822 | 828 | System.exit(0); |