You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
当bean的一些属性 在map为空的时候。
连续多次执行mapping代码
mapping.mapping(map, bean);
第一个转化没问题,
后面的都会会报空指针异常, 必须显示指定 mappingNullValue="false"。
错误信息如下
java.lang.NullPointerException
at com.agapple.mapping.core.process.ValueProcessInvocation.invokeSetExecutor(ValueProcessInvocation.java:71)
at com.agapple.mapping.core.process.ValueProcessInvocation.proceed(ValueProcessInvocation.java:42)
at com.agapple.mapping.process.DebugValueProcess.process(DebugValueProcess.java:49)
at com.agapple.mapping.core.process.ValueProcessInvocation.proceed(ValueProcessInvocation.java:45)
at com.agapple.mapping.process.BehaviorValueProcess.process(BehaviorValueProcess.java:43)
at com.agapple.mapping.core.process.ValueProcessInvocation.proceed(ValueProcessInvocation.java:45)
at com.agapple.mapping.process.BeanCreatorValueProcess.process(BeanCreatorValueProcess.java:28)
at com.agapple.mapping.core.process.ValueProcessInvocation.proceed(ValueProcessInvocation.java:45)
at com.agapple.mapping.process.ConvertorValueProcess.process(ConvertorValueProcess.java:89)
at com.agapple.mapping.core.process.ValueProcessInvocation.proceed(ValueProcessInvocation.java:45)
at com.agapple.mapping.process.DefaultValueValueProcess.process(DefaultValueValueProcess.java:40)
at com.agapple.mapping.core.process.ValueProcessInvocation.proceed(ValueProcessInvocation.java:45)
at com.agapple.mapping.process.ScriptValueProcess.process(ScriptValueProcess.java:50)
at com.agapple.mapping.core.process.ValueProcessInvocation.proceed(ValueProcessInvocation.java:45)
at com.agapple.mapping.core.BeanMappingExecutor.doFieldMapping(BeanMappingExecutor.java:243)
at com.agapple.mapping.core.BeanMappingExecutor.execute(BeanMappingExecutor.java:65)
at com.agapple.mapping.BeanMapping.mapping(BeanMapping.java:91)
at com.e6soft.mapping.test.BeanMapTest.test(BeanMapTest.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Original issue reported on code.google.com by [email protected] on 17 Jan 2013 at 3:29
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 17 Jan 2013 at 3:29The text was updated successfully, but these errors were encountered: