Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 96600 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jface/bindings/BindingManager.java (-6 / +8 lines)
Lines 520-529 Link Here
520
			// Check the scheme ids.
520
			// Check the scheme ids.
521
			final String schemeId = binding.getSchemeId();
521
			final String schemeId = binding.getSchemeId();
522
			found = false;
522
			found = false;
523
			for (int j = 0; j < activeSchemeIds.length; j++) {
523
			if (activeSchemeIds != null) {
524
				if (Util.equals(schemeId, activeSchemeIds[j])) {
524
				for (int j = 0; j < activeSchemeIds.length; j++) {
525
					found = true;
525
					if (Util.equals(schemeId, activeSchemeIds[j])) {
526
					break;
526
						found = true;
527
						break;
528
					}
527
				}
529
				}
528
			}
530
			}
529
			if (!found) {
531
			if (!found) {
Lines 1023-1030 Link Here
1023
	 * This method completes in <code>O(1)</code>.
1025
	 * This method completes in <code>O(1)</code>.
1024
	 * </p>
1026
	 * </p>
1025
	 * 
1027
	 * 
1026
	 * @return The array of defined schemes; this value may be empty, but it is
1028
	 * @return The array of defined schemes; this value may be empty, and it may
1027
	 *         never <code>null</code>.
1029
	 *         be <code>null</code>.
1028
	 */
1030
	 */
1029
	public final Scheme[] getDefinedSchemes() {
1031
	public final Scheme[] getDefinedSchemes() {
1030
		if ((definedSchemes == null) || (definedSchemeCount == 0)) {
1032
		if ((definedSchemes == null) || (definedSchemeCount == 0)) {

Return to bug 96600