这是indexloc提供的服务,不要输入任何密码
Skip to content

Firebase Performance Plugin Null Pointer Exception While Measuring Network Performance #3406

@tfkci

Description

@tfkci

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other categories use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Android Studio Dolphin | 2021.3.1 Canary 1
  • Firebase Component: Performance
  • Component version: 'com.google.firebase:perf-plugin:1.4.1' && ('com.google.firebase:firebase-bom:29.0.4')

[REQUIRED] Step 3: We follow the null-pointer exception after upgrading the performance plugin, while the Performance plugin tries to measure some third-party SDK's network calls.

Steps to reproduce: The problem is not reproducible on our end

What happened? How can we make the problem occur?

image

While the 3rd party SDK's relevant code is null-safe,

com.google.firebase.perf.network.InstrHttpInputStream.close (InstrHttpInputStream.java:67) this line is not. We assess while trying to measure network performance inputStream object closes before measuring.

Relevant Code:

Their code's relevant part :

image

// TODO(you): The bug can not be reproducible on our end

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions