I have decompiled a fix provided by a 3rd party development team.
This is the original code:
if (this.getPassword() != null) {