Fixed NPE when creating network
Merge pull request #40 from andylyall/develop

Fixed NPE when creating network