mirror of https://github.com/apache/activemq.git
Avoid NPE
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@740087 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
662aee8f21
commit
c01e182cfd
|
@ -100,6 +100,8 @@ public class LinkedNodeList<T extends LinkedNode<T>> {
|
|||
* @return
|
||||
*/
|
||||
public T rotate() {
|
||||
if( head ==null )
|
||||
return null;
|
||||
return head = head.getNextCircular();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue