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 42299 Details for
Bug 143259
[1.5][compiler] NullPointerException in ReferenceBinding.binarySearch , Eclipse 3.2RC4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_143259.txt (text/plain), 1.29 KB, created by
Olivier Thomann
on 2006-05-23 14:50:58 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-05-23 14:50:58 EDT
Size:
1.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java,v >retrieving revision 1.101 >diff -u -r1.101 ReferenceBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java 28 Apr 2006 14:53:28 -0000 1.101 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java 23 May 2006 18:52:33 -0000 >@@ -72,7 +72,20 @@ > int mid = 0; > char[] midName; > while (left <= right) { >- mid = (left + right) /2; >+ mid = (left + right) / 2; >+ if (sortedFields[mid] == null) { >+ // abort and do a linear search >+ for (int i = 0, max2 = sortedFields.length; i < max2; i++) { >+ FieldBinding fieldBinding = sortedFields[i]; >+ if (fieldBinding != null) { >+ char[] fieldName = fieldBinding.name; >+ if (compare(name, fieldBinding.name, nameLength, fieldName.length) == 0) { >+ return fieldBinding; >+ } >+ } >+ } >+ return null; >+ } > int compare = compare(name, midName = sortedFields[mid].name, nameLength, midName.length); > if (compare < 0) { > right = mid-1;
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 143259
:
42281
|
42299
|
42301
|
42942
|
42948