diff --git a/samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/MainActivity.java b/samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/MainActivity.java index b46b8b5079..540a6db938 100644 --- a/samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/MainActivity.java +++ b/samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/MainActivity.java @@ -11,10 +11,12 @@ import android.view.MenuItem; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar; +import com.facebook.infer.annotation.Nullsafe; import com.facebook.samples.scrollperf.fragments.MainFragment; import com.facebook.samples.scrollperf.fragments.SettingsFragment; import com.facebook.samples.scrollperf.util.SizeUtil; +@Nullsafe(Nullsafe.Mode.LOCAL) public class MainActivity extends AppCompatActivity { @Override @@ -23,6 +25,7 @@ protected void onCreate(Bundle savedInstanceState) { SizeUtil.initSizeData(this); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); + // NULLSAFE_FIXME[Nullable Dereference] toolbar.setTitle(R.string.app_name); setSupportActionBar(toolbar); if (savedInstanceState == null) {