From 110940474d2580dd38a2f49e9370d0d595264687 Mon Sep 17 00:00:00 2001 From: Marcos B <15697303+gmarcosb@users.noreply.github.com> Date: Tue, 27 Sep 2022 13:56:00 -0600 Subject: [PATCH] NPE fix (#22886) * 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 --- .../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 c24d0dd298dd4f..62ed67132871d1 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); }