fredj/cgxp — comment on commit 35f544504edd0045e801b2a13f515b7e0f39b7a5
File: core/src/script/CGXP/plugins/Print.js line 96
By asaunier:

This cannot work because the legendPanel is probably not defined yet since the "legend" plugin addOutput() has not been called yet (in standard c2cgeoportal app, the legend plugin is called after the print plugin in the viewer config).

=> legendPanel would then be null at this very moment, even though is is created later.