mercredi 19 février 2020

Java reflection , throwing NPE for methods of another class

public class SolutionConfigOverrideEnginePropertiesFacadeImpl implements SolutionConfigOverrideEnginePropertiesFacade { private SolutionConfigOverrideEnginePropertiesService solutionConfigOverrideEnginePropertiesService;

@Override
public SSCEnginePropertiesModel getEngineSettingAttributes()
{
    return getSolutionConfigOverrideEnginePropertiesService().getEngineSettingAttributes();
}

@Override
public void overrideEngineSettingProperties()
{

I am using reflection to call this class and invoke the overrideEngineSettingProperties method, but the getEngineSettingAttributes method is throwing null pointer exception. How do we load this method or invoke this method along with the above overrideEngineSettingProperties .





Aucun commentaire:

Enregistrer un commentaire