You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jo...@apache.org on 2001/08/02 08:37:44 UTC
cvs commit: jakarta-turbine-torque/src/java/org/apache/torque/util BasePeer.java
jon 01/08/01 23:37:44
Modified: src/java/org/apache/torque/util BasePeer.java
Log:
the category may be null because this is a static method.
Revision Changes Path
1.2 +12 -3 jakarta-turbine-torque/src/java/org/apache/torque/util/BasePeer.java
Index: BasePeer.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/util/BasePeer.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BasePeer.java 2001/08/02 05:08:25 1.1
+++ BasePeer.java 2001/08/02 06:37:44 1.2
@@ -110,7 +110,7 @@
* @author <a href="mailto:frank.kim@clearink.com">Frank Y. Kim</a>
* @author <a href="mailto:jmcnally@collab.net">John D. McNally</a>
* @author <a href="mailto:bmclaugh@algx.net">Brett McLaughlin</a>
- * @version $Id: BasePeer.java,v 1.1 2001/08/02 05:08:25 jvanzyl Exp $
+ * @version $Id: BasePeer.java,v 1.2 2001/08/02 06:37:44 jon Exp $
*/
public abstract class BasePeer
{
@@ -1919,8 +1919,17 @@
// Have to catch possible exceptions because method is
// used in initialization of Peers. Torque.getCategory() the exception and
// return null.
- category.error("BasePeer.MapBuilder failed trying to instantiate: " +
- name, e);
+ String message = "BasePeer.MapBuilder failed trying to instantiate: " +
+ name;
+ if (category == null)
+ {
+ System.out.println (message);
+ e.printStackTrace();
+ }
+ else
+ {
+ category.error(message, e);
+ }
}
return null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org