the case all will throw a NPE if a null is passed since `viewer.invalidateTextPresentation()` is called