NullPointerException in Session.disconnect
Status: Alpha
Brought to you by:
ymnk
Session.disconnect throws a NullPointerException when it calls synchronized(connectThread) because connectThread is null. Another thread has initiated a Session.connect and that thread is hung waiting for the data in auth=ua.start(this, userinfo). The user gets tired of waiting and closes the application which sees that a session object exists and isConnected is true so it calls Session.disconnect which throws the NPE. I believe isConnected should not be true until the session is truly connected and/or that Session.disconnect should verify that connectThread is not null.
Logged In: YES
user_id=2163943
Originator: NO
Users of NetBeans run into this bug often, please consider it for fixing. See
http://statistics.netbeans.org/analytics/detail.do?id=2004
http://www.netbeans.org/issues/show_bug.cgi?id=141609
Thanks.