mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-3837 solves problem with NPE
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1433600 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ public @interface TypeConversion {
|
||||
|
||||
/**
|
||||
* The ConversionRule can be a PROPERTY, KEY, KEY_PROPERTY, ELEMENT, COLLECTION (deprecated) or a MAP.
|
||||
* Note: Collection and Map vonversion rules can be determined via com.opensymphony.xwork2.util.DefaultObjectTypeDeterminer.
|
||||
* Note: Collection and Map conversion rules can be determined via com.opensymphony.xwork2.util.DefaultObjectTypeDeterminer.
|
||||
*
|
||||
* @see com.opensymphony.xwork2.conversion.impl.DefaultObjectTypeDeterminer
|
||||
*/
|
||||
|
||||
+4
-1
@@ -440,6 +440,9 @@ public class XWorkConverter extends DefaultTypeConverter {
|
||||
}
|
||||
return converter;
|
||||
} catch (Throwable t) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Got exception trying to resolve convert for class [#0] and property [#1]", t, clazz.getName(), property);
|
||||
}
|
||||
noMapping.add(clazz);
|
||||
}
|
||||
}
|
||||
@@ -753,7 +756,7 @@ public class XWorkConverter extends DefaultTypeConverter {
|
||||
|
||||
if (reloadingConfigs) {
|
||||
URL fileUrl = ClassLoaderUtil.getResource(buildConverterFilename(clazz), clazz);
|
||||
if (fileManager.fileNeedsReloading(fileUrl.toString())) {
|
||||
if (fileManager.fileNeedsReloading(fileUrl)) {
|
||||
mapping = buildConverterMapping(clazz);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user