minor bug fix.
text area may still be null when log interfaces update
This commit is contained in:
parent
34785be0a8
commit
2b5846e967
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: LogListener.java,v 1.1 2006/08/21 12:13:08 fros4943 Exp $
|
* $Id: LogListener.java,v 1.2 2006/10/23 16:14:02 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.plugins;
|
package se.sics.cooja.plugins;
|
||||||
|
@ -70,6 +70,9 @@ public class LogListener extends VisPlugin {
|
||||||
// Log observer
|
// Log observer
|
||||||
logObserver = new Observer() {
|
logObserver = new Observer() {
|
||||||
public void update(Observable obs, Object obj) {
|
public void update(Observable obs, Object obj) {
|
||||||
|
if (logTextArea == null)
|
||||||
|
return;
|
||||||
|
|
||||||
logTextArea.append("\n");
|
logTextArea.append("\n");
|
||||||
|
|
||||||
Mote mote = (Mote) obj;
|
Mote mote = (Mote) obj;
|
||||||
|
|
Loading…
Reference in a new issue