Jetty

NPE on client when server-side extension returns 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

When a server-side extension deletes a message returning null, the client receives a Bayeux message without channel (404::Message Deleted), which leads to a NPE when processing the extensions (see BayeuxClient.extendIn()).

Activity

Hide
Simone Bordet added a comment -

Fixed by adding a guard against the NPE. Such messages will not be processed by the extensions.

Show
Simone Bordet added a comment - Fixed by adding a guard against the NPE. Such messages will not be processed by the extensions.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: