Skip to content
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

JBIDE-21023 ctrl+shft+G sometimes give NPE in cdi tooling #383

Merged
merged 1 commit into from
Oct 30, 2015

Conversation

dazarov
Copy link
Member

@dazarov dazarov commented Oct 27, 2015

No description provided.

@@ -66,7 +66,10 @@ private static boolean containsInSearchScope(QuerySpecification querySpecificati
}

public static boolean containsInSearchScope(QuerySpecification querySpecification, ICDIElement element){
return containsInSearchScope(querySpecification, element.getResource().getProject().getFullPath());
if(element.getResource() != null){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible the resource has a null project?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If resource is a workspace root. But it is not our case

@alexeykazakov
Copy link
Contributor

Please:

  1. Add a comment to the ICDIElement.getResource() that it may return null
  2. Add steps to reproduce to the jira
  3. Add automated tests
  4. Check if we have other places where we don't check if ICDIElement.getResource() == null (if any)

@alexeykazakov alexeykazakov merged commit 61f1571 into jbosstools:master Oct 30, 2015
@alexeykazakov
Copy link
Contributor

Pushed to master and 4.3.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants