From 8d87bbd972b5c9ebc757f06b055237da5779bfdb Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Thu, 24 May 2007 11:04:22 +0000 Subject: [PATCH] return null instead of throwing exception when slide master is not found git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@541266 13f79535-47bb-0310-9956-ffa450edef68 --- src/scratchpad/src/org/apache/poi/hslf/model/Slide.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java b/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java index c595b33e6..6d7a2ab98 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java +++ b/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java @@ -236,7 +236,7 @@ public class Slide extends Sheet 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; } /**