After the backup is taken, the backed target is checked for consistency. The incremental version of the consistency checker currently suffers from a bug leading to the observed NPE.
Workaround: either always take full backups with backup.full
or prevent consistency checking on incremental backups by using
backup.incremental(backupPath.getPath(), false);