commit | be15f311feb2ea1322ea0dc11e43799f354578af | [log] [tgz] |
---|---|---|
author | kchong <kchong> | Thu Mar 23 19:51:49 2006 +0000 |
committer | kchong <kchong> | Thu Mar 23 19:51:49 2006 +0000 |
tree | e7792f286a5fa30c2114564d745a504f4a01516a | |
parent | fa3b384b4c8f5c155be196a5a2340a2320f610df [diff] |
[127360] Renaming a file fails with a NullPointerException
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-refactor/org/eclipse/wst/xsd/ui/internal/refactor/rename/ResourceRenameParticipant.java b/bundles/org.eclipse.wst.xsd.ui/src-refactor/org/eclipse/wst/xsd/ui/internal/refactor/rename/ResourceRenameParticipant.java index 78c9932..ecb772f 100644 --- a/bundles/org.eclipse.wst.xsd.ui/src-refactor/org/eclipse/wst/xsd/ui/internal/refactor/rename/ResourceRenameParticipant.java +++ b/bundles/org.eclipse.wst.xsd.ui/src-refactor/org/eclipse/wst/xsd/ui/internal/refactor/rename/ResourceRenameParticipant.java
@@ -53,6 +53,8 @@ IFile aFile = (IFile) element; try { IContentDescription description = aFile.getContentDescription(); + if ( description == null ) + return false; IContentType contentType = description.getContentType(); if(contentType != null){ if(XSD_CONTENT_TYPE_ID.equals(contentType.getId()) ||