Changeset 5584


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

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

No need to reload configuration from database unless we really want to set the description.

File:
1 edited

Legend:

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

    r5583 r5584  
    414414          if (config != null)
    415415          {
    416             if (config.isInDatabase()) config = PluginConfiguration.getById(dc,config.getId());
    417416            String description = headers.get("descr");
    418417            if (description != null)
    419418            {
     419              if (config.isInDatabase()) config = PluginConfiguration.getById(dc,config.getId());
    420420              config.setDescription(description.replaceAll("\\\\r\\\\n|\\\\n", "\n"));
    421421            }
Note: See TracChangeset for help on using the changeset viewer.