Comment 3 for bug 706623

Revision history for this message
Ivan Zakharyaschev (imz) wrote :

As I could understand, NullPointerException is thrown somewhere in the beginning of this piece of code:

try
   {
    infoPane.writeData();
    setDependentData();
    setStaticData();

    performConsistencyChecks();

    String password = communityField.getText();

    InetAddress hostAddress = InetAddress.getByName(hostIDField.getText());

    messagesArea.append("Updating settings to base station " + hostAddress + "......\n");

 ....

   }

(before the message, and before the skipped updating code).

Actually, it would be more helpful (for the maintainers) not to catch just any exception (as now, in this block of code), but let exceptions fall through and print the backtrace.

Then it would be easier to see how to adapt this code to the new Java...