From: <ba...@us...> - 2007-11-29 22:29:42
|
Revision: 1247 http://obo.svn.sourceforge.net/obo/?rev=1247&view=rev Author: balhoff Date: 2007-11-29 14:29:47 -0800 (Thu, 29 Nov 2007) Log Message: ----------- Forgot to remove extra logging, and made sure array was not null. Modified Paths: -------------- phenote/trunk/src/java/phenote/gui/field/FreeTextField.java Modified: phenote/trunk/src/java/phenote/gui/field/FreeTextField.java =================================================================== --- phenote/trunk/src/java/phenote/gui/field/FreeTextField.java 2007-11-29 22:26:32 UTC (rev 1246) +++ phenote/trunk/src/java/phenote/gui/field/FreeTextField.java 2007-11-29 22:29:47 UTC (rev 1247) @@ -34,7 +34,7 @@ //private CharFieldGui charFieldGui; private boolean guiTextHasChanged = false; private boolean selectionChangedBeforeLosingFocus = false; - private List<CharacterI> editedCharacters; + private List<CharacterI> editedCharacters = new ArrayList<CharacterI>(); //private boolean updateGuiOnly = false; //private void initTextField(String label) { @@ -81,7 +81,7 @@ protected void setValueFromChar(CharacterI chr) { if (chr == null) { - log().error("ERROR: attempt to set fields from null character"); // ex? + log().error("Attempt to set fields from null character"); // ex? return; } //String v = charField.getCharFieldEnum().getValue(chr).getName(); @@ -119,7 +119,6 @@ @Override protected void setValueFromChars(List<CharacterI> characters) { if (this.selectionChangedBeforeLosingFocus) { - log().debug("Updating with old selection: " + this.editedCharacters); final boolean previousUpdateValue = this.updateGuiOnly(); this.setUpdateGuiOnly(false); this.updateModel(this.editedCharacters); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |