mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
fixed NPE
This commit is contained in:
parent
2146d49bbc
commit
287bb90770
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ public class BuildConsoleView extends ViewPart implements ISelectionListener, IB
|
|||
|
||||
IProject convertSelectionToProject(ISelection selection) {
|
||||
IProject project = null;
|
||||
if (selection == null) {
|
||||
if (selection == null || !(selection instanceof IStructuredSelection)) {
|
||||
return project;
|
||||
}
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue