BF [ 1748346 ] NPE on locator fields that are not mandatory

http://sourceforge.net/tracker/index.php?func=detail&aid=1748346&group_id=176962&atid=879332

* fixed javadoc
This commit is contained in:
teo_sarca 2007-07-05 12:17:49 +00:00
parent 3859f40636
commit f85842e48c
1 changed files with 65 additions and 61 deletions

View File

@ -30,6 +30,8 @@ import javax.swing.*;
*
* @author Jorg Janke
* @version $Id: Util.java,v 1.3 2006/07/30 00:52:23 jjanke Exp $
*
* @author Teo Sarca, SC ARHIPAC SERVICE SRL - BF [ 1748346 ]
*/
public class Util
{
@ -122,6 +124,7 @@ public class Util
* CR is not masked
* @param content content
* @return masked content
* @see #maskHTML(String, boolean)
*/
public static String maskHTML (String content)
{
@ -133,12 +136,13 @@ public class Util
* i.e. replace characters with &values;
* @param content content
* @param maskCR convert CR into <br>
* @return masked content
* @return masked content or null if the <code>content</code> is null
*/
public static String maskHTML (String content, boolean maskCR)
{
//if (content == null || content.length() == 0 || content.equals(" "))
//return "&nbsp";
// If the content is null, then return null - teo_sarca [ 1748346 ]
if (content == null)
return content;
//
StringBuffer out = new StringBuffer();
char[] chars = content.toCharArray();