#vulnerable code 
                                private void checkDockerLogin(File homeDir,String configRegistry, String lookupRegistry) throws IOException,
                                                                                    MojoExecutionException {
        createDockerConfig(homeDir, "roland", "secret", "roland@jolokia.org", configRegistry);
        AuthConfig config = factory.createAuthConfig(null, settings, "roland", lookupRegistry);
        verifyAuthConfig(config,"roland","secret","roland@jolokia.org");
    } 
                            #location 5 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                private void checkDockerLogin(File homeDir,String configRegistry, String lookupRegistry)
            throws IOException, MojoExecutionException {
        createDockerConfig(homeDir, "roland", "secret", "roland@jolokia.org", configRegistry);
        AuthConfig config = factory.createAuthConfig(isPush, null, settings, "roland", lookupRegistry);
        verifyAuthConfig(config,"roland","secret","roland@jolokia.org");
    }