Hi,
we are calling the replace function for a regex.
FindReplaceOptions options = new FindReplaceOptions();
options.setDirection(FindReplaceDirection.FORWARD);
options.setReplacingCallback(new ReplaceEvaluator(documentConfigDetailRepository, json, baseAsposeDocument, counterparty, entity, layout, jdbcTemplate));
baseAsposeDocument.getRange().replace(Pattern.compile("\\{\\{([^}]*)\\}\\}"), "", options);
In the ReplaceEvaluator the ReplacingArgs is replaced with " ".
args.setReplacement(" ");
return ReplaceAction.REPLACE;
This throws a null pointer exception as the parent cannot be found.