Commit 84532d55290c4ca4c8ddcb1de4f885af6a6a8ee7

Authored by Nathanael Jourdane
1 parent 4342b8c7

Fix crash when load epn-tap module from amda tree (2/2)

js/app/controllers/EpnTapModule.js
... ... @@ -69,10 +69,11 @@ Ext.define('amdaDesktop.EpnTapModule', {
69 69 ****************************/
70 70  
71 71 /**
72   - Trigerred after the a click on the "Display EPN-TAP service" item from the an AMDA tree contextual menu.
  72 + Trigerred after the a click on the "Display EPN-TAP service" item from the contextual menu in the tree view.
73 73 */
74 74 createWindow: function (icon_id) {
75 75 this.callParent();
  76 +
76 77 Ext.getCmp('epntap-win').setSize(800, 600);
77 78 var icons_dic = {
78 79 'icon-mercury': ['ts', 'planet', 'mercury'],
... ...
js/app/views/EpnTapUI.js
... ... @@ -734,7 +734,11 @@ Ext.define('amdaUI.EpnTapUI', {
734 734 createInfoPanel()
735 735 ],
736 736 listeners: {
737   - 'beforerender': function(me) { Ext.getCmp('epntap-win').setPosition(100, 100);}
  737 + 'beforerender': function(me) {
  738 + if(Ext.getCmp('epntap-win') != null) {
  739 + Ext.getCmp('epntap-win').setPosition(100, 100);
  740 + }
  741 + }
738 742 }
739 743  
740 744 };
... ...