DepthRevWalk is supposed to be too simple to deal with UNINTERESTING or BOUNDARY so yes, the check is never supposed to get that far. It's not pretty, but I'll add a defensive (BOUNDARY != null) condition.