From 0bcab23d1f4203d359ed77c089286ea7f41708e5 Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Sat, 13 Dec 2008 07:05:35 +0000 Subject: [PATCH] BUG #2423087 - JavaPOS Null pointer exception SET DEFAULT COLOR FOR FUNCTION KEY IN CASE OF NO-COLOR SET IN KEY LAYOUT --- client/src/org/compiere/pos/SubFunctionKeys.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/org/compiere/pos/SubFunctionKeys.java b/client/src/org/compiere/pos/SubFunctionKeys.java index 59511efff2..89ab778705 100644 --- a/client/src/org/compiere/pos/SubFunctionKeys.java +++ b/client/src/org/compiere/pos/SubFunctionKeys.java @@ -85,7 +85,7 @@ public class SubFunctionKeys extends PosSubPanel implements ActionListener CPanel content = new CPanel (new GridLayout(Math.max(rows, 3), Math.max(cols, 3))); for (int i = 0; i < m_keys.length; i++) { - Color keyColor = null; + Color keyColor = Color.lightGray; MPOSKey key = m_keys[i]; StringBuffer buttonHTML = new StringBuffer("

"); if (key.getAD_PrintColor_ID() != 0)