From 27ccb566a63b44e0c0b0dae0fcddd527e9db62f9 Mon Sep 17 00:00:00 2001 From: Melloware Date: Thu, 22 Feb 2024 17:15:59 -0500 Subject: [PATCH] Fix #11483: 13.0.7 Showcase Mojarra NPE check (#11512) --- .../java/org/primefaces/showcase/view/ajax/BasicView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/primefaces-showcase/src/main/java/org/primefaces/showcase/view/ajax/BasicView.java b/primefaces-showcase/src/main/java/org/primefaces/showcase/view/ajax/BasicView.java index 7f50905904..36419046de 100644 --- a/primefaces-showcase/src/main/java/org/primefaces/showcase/view/ajax/BasicView.java +++ b/primefaces-showcase/src/main/java/org/primefaces/showcase/view/ajax/BasicView.java @@ -81,7 +81,9 @@ public void increment() { } public void handleKeyEvent() { - text5 = text5.toUpperCase(); + if (text5 != null) { + text5 = text5.toUpperCase(); + } } public String getText1() {