Erlang Mailing Lists

Author Message

<  Erlang bugs mailing list  ~  small jinterface issue

vladdu
Posted: Wed Nov 04, 2009 8:19 am Reply with quote
User Joined: 28 Feb 2005 Posts: 397 Location: Gothenburg, Sweden
Hi,

There is a NullPointerException being thrown from AbstractNode if the
.erlang.cookie file exists but is empty. The following patch takes
care of it.

regards,
Vlad

---- com.ericsson.jinterface/src/com/ericsson/otp/erlang/AbstractNode.java ----
@@ -125,7 +125,7 @@ public class AbstractNode {

br = new BufferedReader(new FileReader(dotCookieFile));
defaultCookie = br.readLine().trim();
- } catch (final IOException e) {
+ } catch (final Exception e) {
defaultCookie = "";
} finally {
try {

________________________________________________________________
erlang-bugs mailing list. See http://www.erlang.org/faq.html
erlang-bugs (at) erlang.org

Post received from mailinglist
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum