Nullpointer exception with wifi
<p>I wrote a code which calculates the signal strength of a wifi access points and stores it in an array as shown below.</p>

<pre><code>int signallevel = WifiManager.calculateSignalLevel(result.level, 10);
signalStrength[i] = signallevel;
</code></pre>

<p>I am getting a null pointer exception in line 2.</p>

<p>Can any one please help me out. Thanks in advance</p>
