Ignore:
Timestamp:
Nov 6, 2006, 7:37:02 AM (16 years ago)
Author:
Martin Svensson
Message:

Fixed bug: Null value is guaranteed to be dereferenced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/jobagent/net/sf/basedb/clients/jobagent/executors/ProcessJobExecutor.java

    r2648 r2862  
    153153    cmd.add("-j"); // Job id
    154154    cmd.add(Integer.toString(job.getId()));
    155     cmd.add("-s"); // JobAgentSettings id
    156     cmd.add(Integer.toString(settings.getId()));
     155    if(settings != null)
     156    {
     157      cmd.add("-s"); // JobAgentSettings id
     158      cmd.add(Integer.toString(settings.getId()));
     159    }
    157160    cmd.add("-u"); // User login
    158161    cmd.add(agent.getLogin());
Note: See TracChangeset for help on using the changeset viewer.