Jetty

NPE in StatisticsExtension if client is null

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 6.1.22
  • Fix Version/s: 6.1.23
  • Component/s: Bayeux
  • Labels:
    None
  • Number of attachments :
    0

Description

In updateStatistics(), when calling statistics.sample(), it is assumed that the client is not null. However, it could happen that the client is null, and there should be a guard to avoid the NPE.

Activity

Hide
Simone Bordet added a comment -

Added guard.

Show
Simone Bordet added a comment - Added guard.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: