From 3fb77417f164e6d4e775e740edf772391e50e5ef Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 28 Sep 2022 10:05:43 -0400 Subject: [PATCH] NPE fix (#22886) (#22922) * Output information about what's being broadcast * Expose/promote QNameString in Logging to allow other logging locations to get a formatted FullQName * Revert inadvertent build_overrides/pigweed_environment.gni This partially reverts commit 15639cf3c5ef3c21480e68b11bdbcd39012a7a11. # Conflicts: # build_overrides/pigweed_environment.gni * Update BUILD.gn deps for QNameString & move it to its own file to avoid circular deps in /responders * Remove unnecessary StringBuilder addition as QNameString is now in its own file * Restyled by whitespace * Restyled by clang-format * Check for null params Co-authored-by: Restyled.io Co-authored-by: Marcos B <15697303+gmarcosb@users.noreply.github.com> Co-authored-by: Restyled.io --- .../java/src/chip/devicecontroller/ChipDeviceController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controller/java/src/chip/devicecontroller/ChipDeviceController.java b/src/controller/java/src/chip/devicecontroller/ChipDeviceController.java index 759dee577c502a..6ed13c09eabc2e 100644 --- a/src/controller/java/src/chip/devicecontroller/ChipDeviceController.java +++ b/src/controller/java/src/chip/devicecontroller/ChipDeviceController.java @@ -50,6 +50,9 @@ public static void loadJni() { * ID */ public ChipDeviceController(ControllerParams params) { + if (params == null) { + throw new NullPointerException("params cannot be null"); + } deviceControllerPtr = newDeviceController(params); }