small jinterface issue

View: New views
1 Messages — Rating Filter:   Alert me  

small jinterface issue

by Vlad Dumitrescu-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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