Skip to content

ScreenManager does not reinitialize SoftButton ID Sets on reconnection #501

@renonick87

Description

@renonick87

Bug Report

When the library disconnects from core, the ScreenManager sets the _softButtonIDBySoftButtonManager and _softButtonIDByAlertManager to null, but these Sets are not reinitialized on reconnection. This causes errors in the library from trying to call Set methods on a null value.

Reproduction Steps
  1. Connect and disconnect an app by sending RegisterAppInterface and UnregisterAppInterface RPCs.
  2. Reconnect the app with a RegisterAppInterface.
  3. Display a list of SoftButtonObjects with the ScreenManager's setSoftButtonObjects method.
screenManager.setSoftButtonObjects([softButtonObject1, softButtonObject2, softButtonObject3]);
Expected Behavior

The SoftButtons are displayed in the HMI.

Observed Behavior

The SoftButtons are not displayed in the HMI and error is logged from the library.

Browser & Version Information
  • SDL JavaScript Suite Module: node
  • SDL JavaScript Version: v1.5.0 RC
  • Testing Against: Manticore v2.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions