throw exception if xlApp == null

throw exception if xlApp == null