apache / cordova-plugin-network-information

Apache Cordova Network Information Plugin
https://cordova.apache.org/
Apache License 2.0
464 stars 321 forks source link

Fix checks that always evaluate to true. #35

Closed pstoll closed 9 years ago

pstoll commented 9 years ago

The compiler in Xcode [Version 7.0 (7A220)] warned on these lines that they always evaluate to true. Sure enough, taking the address of an object is always non-null. Fix this to test that these objects are non-null.