diff options
author | Johannes Tuikkala <johannes@vaadin.com> | 2017-03-07 14:40:17 +0200 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2017-03-07 14:40:17 +0200 |
commit | 58b3bce533044203d64e6fefdcfe8920974ddb78 (patch) | |
tree | 3e576a382b57995e13ea73c6ebb71f98e4236426 /client | |
parent | 6e8e010356206559c58e2eff2330d5bdd05a3b3d (diff) | |
download | vaadin-framework-58b3bce533044203d64e6fefdcfe8920974ddb78.tar.gz vaadin-framework-58b3bce533044203d64e6fefdcfe8920974ddb78.zip |
Fix client-side error when Upload in TabSheet and Push
Fixes #8728
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/VUpload.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VUpload.java b/client/src/main/java/com/vaadin/client/ui/VUpload.java index 708d6fe5df..a6d4875ec1 100644 --- a/client/src/main/java/com/vaadin/client/ui/VUpload.java +++ b/client/src/main/java/com/vaadin/client/ui/VUpload.java @@ -267,10 +267,12 @@ public class VUpload extends SimplePanel { t.cancel(); } VConsole.log("VUpload:Submit complete"); - ((UploadConnector) ConnectorMap.get(client) - .getConnector(VUpload.this)) - .getRpcProxy(UploadServerRpc.class) - .poll(); + if (isAttached()) { + // no need to call poll() if component is already + // detached #8728 + ((UploadConnector) ConnectorMap.get(client).getConnector(VUpload.this)) + .getRpcProxy(UploadServerRpc.class).poll(); + } } rebuildPanel(); |