Skip to content
Snippets Groups Projects
Commit 679bd48f authored by Andreas Bayha's avatar Andreas Bayha
Browse files

Fixed #2011 (Kepler related bug) by adding a check for null.

refs 2011
parent 63811b4a
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ import org.fortiss.tooling.kernel.ui.service.INavigatorService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 06D0BCB060E28E0FA91639CE00976E06
* @ConQAT.Rating YELLOW Hash: AC28DE318F6E378FA08D72E8C999E952
*/
public class NavigatorService implements INavigatorService, IPersistencyServiceListener,
CommandStackListener {
......@@ -169,6 +169,10 @@ public class NavigatorService implements INavigatorService, IPersistencyServiceL
/** {@inheritDoc} */
@Override
public Saveable[] getActiveSaveables() {
if(navigatorViewPart == null) {
return new Saveable[0];
}
EObject selection = navigatorViewPart.getSelectedModelElement();
if(selection != null) {
ITopLevelElement context =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment