*/
@Override
public boolean isRelationshipExists(PackageRelationship rel) {
- for (PackageRelationship r : this.getRelationships()) {
+ for (PackageRelationship r : relationships) {
if (r == rel) {
return true;
}
* @see org.apache.poi.openxml4j.opc.RelationshipSource#isRelationshipExists(org.apache.poi.openxml4j.opc.PackageRelationship)
*/
public boolean isRelationshipExists(PackageRelationship rel) {
- try {
- for (PackageRelationship r : this.getRelationships()) {
- if (r == rel)
- return true;
- }
- } catch (InvalidFormatException e){
+ for (PackageRelationship r : _relationships) {
+ if (r == rel)
+ return true;
}
return false;
}