1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-22 15:53:58 +02:00

Fix Pr 49146, Possible NPE

This commit is contained in:
Alain Magloire 2003-12-18 21:50:55 +00:00
parent cdbbcc88c7
commit 4822f014f1

View file

@ -290,6 +290,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
for (int i = 0; i < nElements; i++) {
if (elements[i] instanceof IAdaptable) {
IResource r = (IResource) ((IAdaptable) elements[i]).getAdapter(IResource.class);
if (r != null) {
ICProject cproject = CoreModel.getDefault().create(r.getProject());
if (cproject != null) {
IBinary[] bins = cproject.getBinaryContainer().getBinaries();
@ -301,6 +302,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
}
}
}
}
if (pm.isCanceled()) {
throw new InterruptedException();
}