Not sure if this is relevant here, but you could use:
```java
  !TextUtils.equlas(oldName, newName)
```
which handles ```null``` correctly.