Skip to content

Conversation

@vektory79
Copy link

If method LockGraph.shortestPath returns null, it's lead to NPE in method LockGraph.publishPotentialDeadlockIfNeeded.

@ndkoval
Copy link
Contributor

ndkoval commented Apr 23, 2017

Have this NPE occurred? The LockGraph.shortestPath method is called only if a cycle is detected, so it cannot return null. Maybe changing "return null" to "throw new IllegalStateException(...)" is a better solution.

@vektory79
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants