#vulnerable code 
                                public void init() {

        getJbootrpc().onInitBefore();

        if (config.isAutoExportEnable()) {
            autoExportRPCBean();
        }

        getJbootrpc().onInited();
    } 
                            #location 3 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                public void init() {

        if (!defaultConfig.isConfigOk()) {
            return;
        }

        Jbootrpc jbootrpc = getJbootrpc();
        jbootrpc.onInitBefore();

        if (defaultConfig.isAutoExportEnable()) {
            exportRPCBean(jbootrpc);
        }

        jbootrpc.onInited();
    }