Changeset 1418 for trunk


Ignore:
Timestamp:
02/28/14 12:24:48 (11 years ago)
Author:
pharms
Message:
  • prevented NullPointer? in case the proxy does not receive data over a longer period of time
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-httpmonitor/src/main/java/de/ugoe/cs/autoquest/httpmonitor/HttpMonitorLogManager.java

    r1384 r1418  
    154154        public void run() { 
    155155            synchronized (HttpMonitorLogManager.this) { 
    156                 if (System.currentTimeMillis() - writer.getLastUpdate() > SESSION_TIMEOUT) { 
     156                if ((writer != null) && 
     157                    (System.currentTimeMillis() - writer.getLastUpdate() > SESSION_TIMEOUT)) 
     158                { 
    157159                    writer.stop(); 
    158160                    writer = null; 
Note: See TracChangeset for help on using the changeset viewer.