Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/category
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21447/org/cobricks/category
Modified Files:
CategoryPresenter.java
Log Message:
Index: CategoryPresenter.java
===================================================================
RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/category/CategoryPresenter.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- CategoryPresenter.java 8 Dec 2006 07:48:06 -0000 1.24
+++ CategoryPresenter.java 18 Dec 2006 16:39:04 -0000 1.25
@@ -425,9 +425,10 @@
int rows, int cols,
boolean readonly)
{
+ if (aname == null) return "";
+
String result = "";
String attr = aname;
-
if (aname.matches(".+_..")) {
attr = aname.substring(0, aname.lastIndexOf("_"));
}
|