Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 93998 Details for
Bug 224458
[search] NPE trying to search for a field declaration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
v00.txt (text/plain), 2.68 KB, created by
Frederic Fusier
on 2008-03-28 12:26:12 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2008-03-28 12:26:12 EDT
Size:
2.68 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java,v >retrieving revision 1.312 >diff -u -r1.312 MatchLocator.java >--- search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java 23 Mar 2008 16:17:41 -0000 1.312 >+++ search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java 28 Mar 2008 16:25:41 -0000 >@@ -565,25 +565,29 @@ > protected IJavaElement createHandle(AbstractVariableDeclaration variableDeclaration, IJavaElement parent) { > switch (variableDeclaration.getKind()) { > case AbstractVariableDeclaration.LOCAL_VARIABLE: >- return new LocalVariable((JavaElement)parent, >- new String(variableDeclaration.name), >- variableDeclaration.declarationSourceStart, >- variableDeclaration.declarationSourceEnd, >- variableDeclaration.sourceStart, >- variableDeclaration.sourceEnd, >- new String(variableDeclaration.type.resolvedType.signature()), >- variableDeclaration.annotations >- ); >+ if (variableDeclaration.type.resolvedType != null) { >+ return new LocalVariable((JavaElement)parent, >+ new String(variableDeclaration.name), >+ variableDeclaration.declarationSourceStart, >+ variableDeclaration.declarationSourceEnd, >+ variableDeclaration.sourceStart, >+ variableDeclaration.sourceEnd, >+ new String(variableDeclaration.type.resolvedType.signature()), >+ variableDeclaration.annotations >+ ); >+ } > case AbstractVariableDeclaration.PARAMETER: >- return new LocalVariable((JavaElement)parent, >- new String(variableDeclaration.name), >- variableDeclaration.declarationSourceStart, >- variableDeclaration.declarationSourceEnd, >- variableDeclaration.sourceStart, >- variableDeclaration.sourceEnd, >- new String(variableDeclaration.type.resolvedType.signature()), >- variableDeclaration.annotations >- ); >+ if (variableDeclaration.type.resolvedType != null) { >+ return new LocalVariable((JavaElement)parent, >+ new String(variableDeclaration.name), >+ variableDeclaration.declarationSourceStart, >+ variableDeclaration.declarationSourceEnd, >+ variableDeclaration.sourceStart, >+ variableDeclaration.sourceEnd, >+ new String(variableDeclaration.type.resolvedType.signature()), >+ variableDeclaration.annotations >+ ); >+ } > case AbstractVariableDeclaration.TYPE_PARAMETER: > return new org.eclipse.jdt.internal.core.TypeParameter((JavaElement)parent, new String(variableDeclaration.name)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 224458
: 93998