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 58796 Details for
Bug 173907
[code assist] severe NPE on exception completions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_173907.txt (text/plain), 1.38 KB, created by
Olivier Thomann
on 2007-02-12 14:11:45 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-02-12 14:11:45 EST
Size:
1.38 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: codeassist/org/eclipse/jdt/internal/codeassist/ThrownExceptionFinder.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/ThrownExceptionFinder.java,v >retrieving revision 1.1 >diff -u -r1.1 ThrownExceptionFinder.java >--- codeassist/org/eclipse/jdt/internal/codeassist/ThrownExceptionFinder.java 19 Jan 2007 17:06:30 -0000 1.1 >+++ codeassist/org/eclipse/jdt/internal/codeassist/ThrownExceptionFinder.java 12 Feb 2007 19:07:20 -0000 >@@ -112,7 +112,8 @@ > } > > Block[] catchBlocks = tryStatement.catchBlocks; >- for (int i = 0; i < catchBlocks.length; i++) { >+ int length = catchBlocks == null ? 0 : catchBlocks.length; >+ for (int i = 0; i < length; i++) { > catchBlocks[i].traverse(this, scope); > } > return false; >@@ -120,7 +121,8 @@ > > private void removeCaughtExceptions(TryStatement tryStatement) { > Argument[] catchArguments = tryStatement.catchArguments; >- for (int i = 0; i < catchArguments.length; i++) { >+ int length = catchArguments == null ? 0 : catchArguments.length; >+ for (int i = 0; i < length; i++) { > TypeBinding exception = catchArguments[i].type.resolvedType; > if (exception != null && exception.isValidBinding()) { > this.thrownExceptions.remove(exception);
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 173907
:
58792
| 58796