View | Details | Raw Unified | Return to bug 96950 | Differences between
and this patch

Collapse All | Expand All

(-)search/org/eclipse/jdt/internal/core/search/BasicSearchEngine.java (-2 / +2 lines)
Lines 539-545 Link Here
539
						&& !workingCopyPaths.contains(documentPath)) { // filter out working copies
539
						&& !workingCopyPaths.contains(documentPath)) { // filter out working copies
540
					if (access != null) {
540
					if (access != null) {
541
						// Compute document relative path
541
						// Compute document relative path
542
						int pkgLength = record.pkg==null ? 0 : record.pkg.length+1;
542
						int pkgLength = (record.pkg==null || record.pkg.length==0) ? 0 : record.pkg.length+1;
543
						int nameLength = record.simpleName==null ? 0 : record.simpleName.length;
543
						int nameLength = record.simpleName==null ? 0 : record.simpleName.length;
544
						char[] path = new char[pkgLength+nameLength];
544
						char[] path = new char[pkgLength+nameLength];
545
						int pos = 0;
545
						int pos = 0;
Lines 762-768 Link Here
762
					AccessRestriction accessRestriction = null;
762
					AccessRestriction accessRestriction = null;
763
					if (access != null) {
763
					if (access != null) {
764
						// Compute document relative path
764
						// Compute document relative path
765
						int qualificationLength = record.qualification == null ? 0 : record.qualification.length + 1;
765
						int qualificationLength = (record.qualification == null || record.qualification.length == 0) ? 0 : record.qualification.length + 1;
766
						int nameLength = record.simpleName == null ? 0 : record.simpleName.length;
766
						int nameLength = record.simpleName == null ? 0 : record.simpleName.length;
767
						char[] path = new char[qualificationLength + nameLength];
767
						char[] path = new char[qualificationLength + nameLength];
768
						int pos = 0;
768
						int pos = 0;

Return to bug 96950