diff options
author | Yana Stamcheva <yana@jitsi.org> | 2012-01-18 19:55:04 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2012-01-18 19:55:04 +0000 |
commit | 794ec1e6191d1b8d9f2b70c7372f365da1d07d49 (patch) | |
tree | 144ed9dff375a75e1af8b3cc5e72b54ec0b1b613 /src | |
parent | eadc63024f6e89e5c34a0caa77423511685e5076 (diff) | |
download | jitsi-794ec1e6191d1b8d9f2b70c7372f365da1d07d49.zip jitsi-794ec1e6191d1b8d9f2b70c7372f365da1d07d49.tar.gz jitsi-794ec1e6191d1b8d9f2b70c7372f365da1d07d49.tar.bz2 |
Fixes NullPointerException when retrieving delete text button rectangle in text fields.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/java/sip/communicator/util/swing/plaf/SIPCommTextFieldUI.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/util/swing/plaf/SIPCommTextFieldUI.java b/src/net/java/sip/communicator/util/swing/plaf/SIPCommTextFieldUI.java index ffa9062..dd09d8b 100644 --- a/src/net/java/sip/communicator/util/swing/plaf/SIPCommTextFieldUI.java +++ b/src/net/java/sip/communicator/util/swing/plaf/SIPCommTextFieldUI.java @@ -231,6 +231,11 @@ public class SIPCommTextFieldUI */ protected void updateDeleteIcon(MouseEvent evt) { + // If the component is null we have nothing more to do here. Fixes a + // NullPointerException in getDeleteButtonRectangle(). + if (getComponent() == null) + return; + int x = evt.getX(); int y = evt.getY(); |