| author | Tomasz Zarna | 2012-10-11 12:49:43 (EDT) |
|---|---|---|
| committer | Curtis Windatt | 2012-10-11 12:49:43 (EDT) |
| commit | 9ef4503f0768199d5b3e12ec91488a044a0a3ddc (patch) (side-by-side diff) | |
| tree | 96a94013d90619d17c3340e67546db39117d58ce | |
| parent | 80cb6904344d752f652ce26b174cfa9a34cead07 (diff) | |
| download | eclipse.pde.ui-9ef4503f0768199d5b3e12ec91488a044a0a3ddc.zip eclipse.pde.ui-9ef4503f0768199d5b3e12ec91488a044a0a3ddc.tar.gz eclipse.pde.ui-9ef4503f0768199d5b3e12ec91488a044a0a3ddc.tar.bz2 | |
Bug 299298 - [spy] NullPointerException while invoking the Plug-in Spyv20121011-164943
| -rw-r--r-- | ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/spy/sections/ActiveFormEditorSection.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/spy/sections/ActiveFormEditorSection.java b/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/spy/sections/ActiveFormEditorSection.java index 0d27ea9..899fe75 100644 --- a/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/spy/sections/ActiveFormEditorSection.java +++ b/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/spy/sections/ActiveFormEditorSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008 Code 9 Corporation and others. + * Copyright (c) 2008, 2012 Code 9 Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -8,6 +8,7 @@ * Contributors: * Code 9 Corporation - initial API and implementation * Ketan Padegaonkar <KetanPadegaonkar@gmail.com> - bug 241912 + * Tomasz Zarna <tomasz.zarna@tasktop.com> - bug 299298 *******************************************************************************/ package org.eclipse.pde.internal.runtime.spy.sections; @@ -36,6 +37,8 @@ public class ActiveFormEditorSection implements ISpySection { return; IFormPage activePage = multiEditor.getActivePageInstance(); + if (activePage == null) + return; Section section = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR); section.setText(PDERuntimeMessages.ActiveFormEditorSection_Active_Form_Page); |

