small jinterface issue

Vlad Dumitrescu <>
Wed Nov 4 09:18:56 CET 2009


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 {


More information about the erlang-bugs mailing list