title: NoSuchMethodError: The method '[]' was called on null - Flutter
body: <p>I want to read data from <a href="https://en.gravatar.com/mwxgaf.json" rel="nofollow noreferrer">this</a> JSON in this way (PLEASE READ CODE COMMENTS):</p>
  <pre class="lang-dart prettyprint-override"><code>class Profile extends StatefulWidget {
    final id;
  
    Profile({Key? key, @required this.id}) : super(key: key);
  
    @override
    _ProfileState createState() =&gt; _ProfileState();
  }
  
  class _ProfileState extends State&lt;Profile&gt; {
    var data;
    @override
    void initState() {
      super.initState();
      void getData() async {
        Response response = await get(
            Uri.parse('https://en.gravatar.com/' + widget.id + '.json'));
        this.data = json.decode(utf8.decode(response.bodyBytes));
        // READ PLEASE &gt;&gt;&gt; Data successfully is loaded from server &amp; if you 
        // print this.data it will show full data in console &lt;&lt;&lt; READ PLEASE
      }
  
      getData();
    }
  
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        debugShowCheckedModeBanner: false,
        title: 'Profile | MWX Gravatar Viewer',
        home: Scaffold(
          appBar: AppBar(
            title: Text('Profile | MGV'),
          ),
          body: Center(
            child: Column(
              children: [
                Text(this.data['entry'][0]['name']['familyName']), // Where raises error
              ],
            ),
          ),
        ),
      );
    }
  }
  
  </code></pre>
  <p>And i get this error while rendering page:</p>
  <pre><code>The following NoSuchMethodError was thrown building Profile(dirty, state: _ProfileState#35267):
  The method '[]' was called on null.
  Receiver: null
  Tried calling: [](&quot;entry&quot;)
  </code></pre>
  <p><strong>NOTE:</strong> After a hot reload error is gone &amp; I CAN SEE THE DATA I NEEDED ON SCREEN but every time when I want to load the page  this error will be shown although I can see what I expected, after a hot reload</p>