Changeset 5583


Ignore:
Timestamp:
Mar 15, 2011, 2:17:44 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1584: NullPointerException? when configuring Base1PluginExecuter if 'descr' field is missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.17-stable/src/plugins/core/net/sf/basedb/plugins/Base1PluginExecuter.java

    r5481 r5583  
    415415          {
    416416            if (config.isInDatabase()) config = PluginConfiguration.getById(dc,config.getId());
    417             config.setDescription(headers.get("descr").replaceAll("\\\\r\\\\n|\\\\n", "\n"));
     417            String description = headers.get("descr");
     418            if (description != null)
     419            {
     420              config.setDescription(description.replaceAll("\\\\r\\\\n|\\\\n", "\n"));
     421            }
    418422          }
    419423          dc.commit();
Note: See TracChangeset for help on using the changeset viewer.