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:
parent
3859f40636
commit
f85842e48c
|
@ -30,6 +30,8 @@ import javax.swing.*;
|
||||||
*
|
*
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @version $Id: Util.java,v 1.3 2006/07/30 00:52:23 jjanke Exp $
|
* @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
|
public class Util
|
||||||
{
|
{
|
||||||
|
@ -122,6 +124,7 @@ public class Util
|
||||||
* CR is not masked
|
* CR is not masked
|
||||||
* @param content content
|
* @param content content
|
||||||
* @return masked content
|
* @return masked content
|
||||||
|
* @see #maskHTML(String, boolean)
|
||||||
*/
|
*/
|
||||||
public static String maskHTML (String content)
|
public static String maskHTML (String content)
|
||||||
{
|
{
|
||||||
|
@ -133,12 +136,13 @@ public class Util
|
||||||
* i.e. replace characters with &values;
|
* i.e. replace characters with &values;
|
||||||
* @param content content
|
* @param content content
|
||||||
* @param maskCR convert CR into <br>
|
* @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)
|
public static String maskHTML (String content, boolean maskCR)
|
||||||
{
|
{
|
||||||
//if (content == null || content.length() == 0 || content.equals(" "))
|
// If the content is null, then return null - teo_sarca [ 1748346 ]
|
||||||
//return " ";
|
if (content == null)
|
||||||
|
return content;
|
||||||
//
|
//
|
||||||
StringBuffer out = new StringBuffer();
|
StringBuffer out = new StringBuffer();
|
||||||
char[] chars = content.toCharArray();
|
char[] chars = content.toCharArray();
|
||||||
|
|
Loading…
Reference in New Issue