Gio: bail from foreach iteration after finding null (bgo#721203)
commit9d1ebf928edc793ba240603a3187f081b5d063d8
authorAndrés G. Aragoneses <knocte@gmail.com>
Sun, 29 Dec 2013 21:03:08 +0000 (29 22:03 +0100)
committerAndrés G. Aragoneses <knocte@gmail.com>
Sun, 29 Dec 2013 21:03:08 +0000 (29 22:03 +0100)
tree8f973176184db4dd31e93d9a335940e59e02034a
parent20bacf9a3d06b2d136b474319f0b8224947bc4b8
Gio: bail from foreach iteration after finding null (bgo#721203)

Previous commit [1] didn't take in account that a 'yield return'
is not equivalent to a 'return' statement with regards to loops
(the latter will exit the loop, but not the former). So we need
to pass to the next iteration of the loop manually via `continue`
in every case where we want to discard creating a new Volume
object because of finding unwanted null collaborators.

https://git.gnome.org/browse/banshee/commit/?id=20bacf9a3d06b2d136b474319f0b8224947bc4b8
src/Backends/Banshee.Gio/Banshee.Hardware.Gio/LowLevel/RawBlockDevice.cs