Bug 6969 NPE in code formatter preference page
20011206 Open the code formatter preference page Go to the style tab Go to the number of spaces... field Backspace until the field is empty NPE
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java
}
			} catch (NumberFormatException e) {
				status.setError(JavaUIMessages.getFormattedString("CodeFormatterPreferencePage.invalid_input", number));
			}
		}
		return status;
	}
			
	
	private void updateStatus(IStatus status) {
		if (!status.matches(IStatus.ERROR)) {
			
			for (int i= 0; i < fTextBoxes.size(); i++) {
				Text curr= (Text) fTextBoxes.get(i);
				if (!(curr == fTabSizeTextBox && usesTabs())) {
					IStatus currStatus= validatePositiveNumber(curr.getText());
					status= StatusUtil.getMoreSevere(currStatus, status);
				}
			}
		}	
		setValid(!status.matches(IStatus.ERROR));
		StatusUtil.applyToStatusLine(this, status);
	}
	
	private boolean usesTabs() {
		return TAB.equals(fWorkingValues.get(PREF_TAB_CHAR));
	}
		
}