onActivityResult() Intent data is always null
<p>Can somebody tell my why the <code>Intent data</code> is always null?</p>

<pre><code>@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

if (resultCode == RESULT_OK) {
    if (requestCode == UPDATE_PROFILE_REQUEST_CODE) {

        if (data != null) {
            User user = (User) data.getExtras().getSerializable(USER_DATA_EXTRA);
            if (user != null) {
                notifyNeedUpdate(user);
            }
        } else {
            Log.e("Dev", "data is null");
        }

    }
}
</code></pre>

<p>}</p>

<p>and this is how I set the result:</p>

<pre><code>setResult(RESULT_OK, getIntent().putExtra(ProfileActivity.USER_DATA_EXTRA, constructUser()));
</code></pre>

<p><code>constructUser()</code> just creates an Object I need.</p>

<p>I always get <code>Log.e("Dev", "data is null");</code>. </p>
