JDK-8305529 : NullPointerException at HttpRequestImpl.retrieveProxy in HttpRequestImpl.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 11
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • OS: linux
  • CPU: x86_64
  • Submitted: 2023-03-30
  • Updated: 2023-04-04
Description
ADDITIONAL SYSTEM INFORMATION :
OpenJDK Runtime Environment 11.0.18 / Linux 5.15.0-1029-kvm (amd64)

# Environment Variables
http_proxy = 
https_proxy = 
sock_proxy = 

# System Properties
java.version = 11.0.18
java.version.date = 2023-01-17
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 11
java.vm.vendor = Ubuntu
java.vm.version = 11.0.18+10-post-Ubuntu-0ubuntu122.04

A DESCRIPTION OF THE PROBLEM :
The new HTTP/2 client unexpected throws NPEs on some end-users systems. The reason seems to be the existence of set but empty environment variables: http_proxy | https_proxy | sock_proxy


Here's the original bug report from our customer:
https://www.filebot.net/forums/viewtopic.php?t=13656


FREQUENCY : often



Comments
Additional information from the submitter: I'm currently unable to make a reproducible test case because I'm on macOS / JDK17 and cannot reproduce the issue here in my environment. The error does suggest the issue originates from JDK internals though, though I don't know what the code for Linux / JDK11 would look like specifically there.
04-04-2023

Requested a simple Java reproducer from the submitter.
30-03-2023