New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null pointer exception for getAllWithSubTypes(IfcProduct.class) #818

Open
shubhambansal500 opened this Issue Sep 9, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@shubhambansal500

shubhambansal500 commented Sep 9, 2018

IfcModelInterface model = client.getModel(project, project.getLastRevisionId(),false, true,true);

ClientIfcModel model = client.getModel(project, project.getLastRevisionId(),true,false,true);

Collection products = model.getAllWithSubTypes(IfcProduct.class);
when i run this code and debug :
public List getAllWithSubTypes(EClass eClass) {
if (!loadedClasses.contains(eClass.getName()) && modelState != ModelState.FULLY_LOADED) {

it goes to this method and i see that eClass is null and hence returning null pointer exception . I don't undertand when i passed the class reflection it still says null pointer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment