WindowsAzure/azure-sdk-for-java — pull request #417 by velocipedist (2013-11-12 12:36:01+00:00)
Title: Updated next() method to satisfy the iterator contract and not throw a n...

...ull pointer exception, if it was called without hasNext() being called.

The previous implementation did not initialize the *currentSegmentIterator*, unless *hasNext()* has been called, which lead to unexpected *NullPointerException*.
I've changed the impl to call *hasNext()* prior to the next call.