Author: yegor
Date: Thu May 24 04:04:22 2007
New Revision: 541266

URL: http://svn.apache.org/viewvc?view=rev&rev=541266
Log:
return null instead of throwing exception when slide master is not found

Modified:
    jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java

Modified: 
jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java
URL: 
http://svn.apache.org/viewvc/jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java?view=diff&rev=541266&r1=541265&r2=541266
==============================================================================
--- jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java 
(original)
+++ jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java 
Thu May 24 04:04:22 2007
@@ -236,7 +236,7 @@
         for (int i = 0; i < master.length; i++) {
             if (masterId == master[i]._getSheetNumber()) return master[i];
         }
-        throw new RuntimeException("Master slide not found for slide " + 
_slideNo);
+        return null;
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/

Reply via email to