New issue
Advanced search Search tips

Issue 791373 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jan 17
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Potential null pointer exception

Reported by wangsong...@gmail.com, Dec 4 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:
Our tool DeepTect detect a potential null pointer exception in /base/android/java/src/org/chromium/base/library_loader/Linker.java

There is a potential null pointer exception:

if (sSingleton == null) {
  setImplementationForTesting(type);
  sSingleton.setTestRunnerClassNameForTesting(testRunnerClassName);
  return;
}

If "sSingleton" is equal to null, there is a null point exception when it calls the method "setTestRunnerClassNameForTesting" inside the if statement.

What is the expected behavior?

What went wrong?
/base/android/java/src/org/chromium/base/library_loader/Linker.java

There is a potential null pointer exception:

if (sSingleton == null) {
  setImplementationForTesting(type);
  sSingleton.setTestRunnerClassNameForTesting(testRunnerClassName);
  return;
}

If "sSingleton" is equal to null, there is a null point exception when it calls the method "setTestRunnerClassNameForTesting" inside the if statement.

Did this work before? N/A 

Chrome version: 62.0.3202.94  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
Components: OS>Kernel
Labels: Needs-Triage-M62 Triaged-ET TE-NeedsTriageHelp
The issue seems to be out of TE-scope as it is related to null pointer exception(java). Hence, adding label TE-NeedsTriageHelp for further investigation from dev team.

Thanks...!!
Hi krajshree@chromium.org, do you have any updates on the issue now? Thank you very much!
Project Member

Comment 3 by sheriffbot@chromium.org, Jan 17 (6 days ago)

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment