From 6b12e6b89916c3ca636660829f9e3f4ca798851d Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Tue, 15 May 2007 21:15:39 +0000 Subject: [PATCH] [187061] Fix NPE Renaming Connections from Remote System Details View --- .../UI/org/eclipse/rse/internal/ui/view/SystemView.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java index 2d5d6c6b8b8..8a66f5cf4f2 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java @@ -4365,8 +4365,12 @@ public class SystemView extends SafeTreeViewer // looking for are not to be found within this branch... // ----------------------------------------------------------------------------------------- else if (rawData instanceof IHost) { + if (subsystem==null) { + return occurrences; //bug 187061: renaming a host has no subsystem associated, therefore no other matches to rename + } IHost currConn = (IHost) rawData; - if (!currConn.getHostName().equals(subsystem.getHost().getHostName())) return occurrences; // they don't match, so don't bother checking the kids + if (!currConn.getHostName().equals(subsystem.getHost().getHostName())) + return occurrences; // they don't match, so don't bother checking the kids } // skip the new connection prompts... else if (rawData instanceof ISystemPromptableObject)