possible nullpointer exception due to getNetworkInterfaces call on lower devices