Bug 877999 - Check that network is not null
Merge pull request #10127 from lissyx/bug877999

Bug 877999 - Check that network is not null, r=kaze