Hello guys,
I am trying fetch sublayer from WmsLayer for visible and invisible those layers . but problem is when i am using this code "this.layer.getSublayers().get(0).setVisible(this.visible);" and run the code I am getting bound exception "Index 0 out of bounds for length 0". and i am debugging this code i get the value of sublayer list as Null. can anybody help how to i am able to get sublayer from Wmslayer? what is the wrong in my code?