xsddoc/src/net/sf/xframe/xsddoc ProcessorException.java,1.3,1.4

Kurt Riede <[email protected]> Thu, 07 Oct 2004 22:51:41 +0000
Newsgroups gmane.text.xml.xframe.xsddoc.devel
Message-ID <[email protected]>
Update of /cvsroot/xframe/xsddoc/src/net/sf/xframe/xsddoc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24075/src/net/sf/xframe/xsddoc

Modified Files:
	ProcessorException.java 
Log Message:
fixed some NullPointerExceptions

Index: ProcessorException.java
===================================================================
RCS file: /cvsroot/xframe/xsddoc/src/net/sf/xframe/xsddoc/ProcessorException.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ProcessorException.java	20 Jun 2004 21:36:17 -0000	1.3
--- ProcessorException.java	7 Oct 2004 22:51:38 -0000	1.4
***************
*** 68,72 ****
       */
      public final String getLocalizedMessage() {
!         if (this.getCause() instanceof TransformerException) {
              return XMLUtil.getLocallizedMessageAndLocation((TransformerException) getCause());
          } else if (this.getCause() instanceof SAXParseException) {
--- 68,74 ----
       */
      public final String getLocalizedMessage() {
!         if (getCause() == null) {
!             return super.getLocalizedMessage();
!         } if (this.getCause() instanceof TransformerException) {
              return XMLUtil.getLocallizedMessageAndLocation((TransformerException) getCause());
          } else if (this.getCause() instanceof SAXParseException) {
***************
*** 81,85 ****
       */
      public final String getMessage() {
!         if (this.getCause() instanceof TransformerException) {
              return XMLUtil.getLocallizedMessageAndLocation((TransformerException) getCause());
          } else {
--- 83,89 ----
       */
      public final String getMessage() {
!         if (getCause() == null) {
!             return super.getMessage();
!         } if (this.getCause() instanceof TransformerException) {
              return XMLUtil.getLocallizedMessageAndLocation((TransformerException) getCause());
          } else {



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl