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

CHE-1819: fix NPE when unresolved project is deleted #1874

Merged
merged 1 commit into from
Jul 26, 2016
Merged

CHE-1819: fix NPE when unresolved project is deleted #1874

merged 1 commit into from
Jul 26, 2016

Conversation

svor
Copy link
Contributor

@svor svor commented Jul 20, 2016

What does this PR do?

Fix NPE after deleting unresolved multi-module project.
Show notification with the number of modules which were deleted.

What issues does this PR fix or reference?

#1819

Previous Behavior

After deleting multi-module project the process of resolving dependencies is continued and threw many NPEs

New Behavior

This content may also be included in the release notes.
After deleting multi-module project: project is deleted without exceptions and the process of resolving dependencies is ended

Tests written?

No

Please review @vparfonov

@svor svor changed the title CHE-1523: fix NPE when unresolved project is deleted CHE-1819: fix NPE when unresolved project is deleted Jul 20, 2016
@codenvy-ci
Copy link

@vparfonov
Copy link
Contributor

ok

@@ -414,6 +414,10 @@ public Project getRootProject() {
}
}

if (currentResources[0] == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What does it actually mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It means that current resource (selected resource) is null. In this class
currentResources[0] == currentResource
I've made some changes and now it's more clear, I hope.

Copy link
Contributor

Choose a reason for hiding this comment

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

It is better now. thx

Signed-off-by: Valeriy Svydenko <vsvydenko@codenvy.com>
@svor svor merged commit a1bfd19 into master Jul 26, 2016
@svor svor deleted the CHE-1819 branch July 26, 2016 14:26
@codenvy-ci
Copy link

Build # 1308 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/1308/ to view the results.

@TylerJewell TylerJewell modified the milestone: 4.6.0 Jul 26, 2016
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.

5 participants