1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

fixed NPE

This commit is contained in:
David Inglis 2003-02-11 16:47:56 +00:00
parent 2146d49bbc
commit 287bb90770

View file

@ -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 {