git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198136
13f79535-47bb-0310-9956-
ffa450edef68
} else if (areaclass == Constants.FO_REGION_AFTER) {
return regionAfter;
}
- return null;
+ throw new IllegalArgumentException("No such area class with ID = "
+ + areaclass);
}
/**
}
RegionViewport reg = curPage.getPage().getRegionViewport(region.getNameId());
- if (reg == null) {
- log.error("no region viewport: shouldn't happen");
- }
StaticContentLayoutManager lm = getStaticContentLayoutManager(flow);
lm.initialize();
lm.setRegionReference(reg.getRegion());