Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Because the doSomething() method fails to check if str is null, a runtime exception can occur, preventing the lock from being released.

...