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
This commit is contained in:
Yegor Kozlov 2007-05-24 11:04:22 +00:00
parent ba9e3eb545
commit 8d87bbd972

View File

@ -236,7 +236,7 @@ public class Slide extends Sheet
for (int i = 0; i < master.length; i++) { for (int i = 0; i < master.length; i++) {
if (masterId == master[i]._getSheetNumber()) return master[i]; if (masterId == master[i]._getSheetNumber()) return master[i];
} }
throw new RuntimeException("Master slide not found for slide " + _slideNo); return null;
} }
/** /**