Github user emilianbold commented on a diff in the pull request:

    https://github.com/apache/incubator-netbeans/pull/2#discussion_r139596868
  
    --- Diff: o.n.core/src/org/netbeans/core/NbAuthenticator.java ---
    @@ -71,7 +74,19 @@ private NbAuthenticator() {
     
         static void install() {
             if (Boolean.valueOf(NbBundle.getMessage(GuiRunLevel.class, 
"USE_Authentication"))) {
    -            setDefault(new NbAuthenticator());
    +            // Look for custom authenticator
    +            Authenticator authenticator = 
Lookup.getDefault().lookup(Authenticator.class);
    +            if (authenticator == null) {
    +                authenticator = new NbAuthenticator();
    +            }
    +            if (authenticator.getClass().equals(NbAuthenticator.class)) {
    --- End diff --
    
    Everything else, including the log call doesn't seem necessary.


---

Reply via email to