}
/** {@inheritDoc} */
+ @Override
public PercentBase getPercentBase() {
return new ICCPercentBase();
}
PropertyInfo pInfo) throws PropertyException {
// Map color profile NCNAME to src from declarations/color-profile element
String colorProfileName = args[3].getString();
- Declarations decls = pInfo.getFO().getRoot().getDeclarations();
+ Declarations decls = (pInfo.getFO() != null
+ ? pInfo.getFO().getRoot().getDeclarations()
+ : null);
ColorProfile cp = null;
if (decls == null) {
//function used in a color-specification
}
/** {@inheritDoc} */
+ @Override
public PercentBase getPercentBase() {
return new NamedPercentBase();
}
String colorProfileName = args[3].getString();
String colorName = args[4].getString();
- Declarations decls = pInfo.getFO().getRoot().getDeclarations();
+ Declarations decls = (pInfo.getFO() != null
+ ? pInfo.getFO().getRoot().getDeclarations()
+ : null);
ColorProfile cp = null;
if (decls != null) {
cp = decls.getColorProfile(colorProfileName);
}
return newProp;
} catch (PropertyException propEx) {
- propEx.setLocator(fo.getLocator());
+ if (fo != null) {
+ propEx.setLocator(fo.getLocator());
+ }
propEx.setPropertyName(getName());
throw propEx;
}
* subproperty makers of the generic compound makers.
* {@inheritDoc}
*/
+ @Override
public Object clone() {
try {
return super.clone();