Skip to content
Mohammad Badar Hashimi edited this page Jan 12, 2020 · 1 revision

This is used to avoid NPE: NullPointerException easily.

Validations:

  • to check if given obj is null.
  • to check if the given str is null or an empty string.
  • to check given collection is null or is Empty.
  • to check given map is null or is Empty.
Clone this wiki locally