[
https://issues.apache.org/jira/browse/FELIX-6530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Rütter updated FELIX-6530:
-------------------------------
Fix Version/s: (was: utils-1.11.10)
> NullPointerException in ConfigurationHandler when property value is null
> ------------------------------------------------------------------------
>
> Key: FELIX-6530
> URL: https://issues.apache.org/jira/browse/FELIX-6530
> Project: Felix
> Issue Type: Bug
> Components: Utils
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> {code:java}
> karaf@root()> config:edit foo
> karaf@root()> config:property-list
> dataSource.target = <null>
> karaf@root()> config:update
> Error executing command: java.lang.NullPointerException
> karaf@root()> {code}
> {code:java}
> java.lang.NullPointerException: null
> at
> org.apache.felix.utils.properties.ConfigurationHandler.writeValue(ConfigurationHandler.java:791)
> ~[?:?]
> at
> org.apache.felix.utils.properties.ConfigurationHandler.write(ConfigurationHandler.java:229)
> ~[?:?]
> at
> org.apache.felix.utils.properties.TypedProperties.convertToString(TypedProperties.java:345)
> ~[?:?]
> at
> org.apache.felix.utils.properties.TypedProperties.put(TypedProperties.java:172)
> ~[?:?]
> at
> org.apache.felix.utils.properties.TypedProperties.put(TypedProperties.java:52)
> ~[?:?]
> at java.util.AbstractMap.putAll(AbstractMap.java:281) ~[?:1.8.0_172]
> at
> org.apache.karaf.config.core.impl.ConfigRepositoryImpl.update(ConfigRepositoryImpl.java:73)
> ~[?:?]
> at
> org.apache.karaf.config.command.UpdateCommand.doExecute(UpdateCommand.java:42)
> ~[?:?]
> at
> org.apache.karaf.config.command.ConfigCommandSupport.execute(ConfigCommandSupport.java:49)
> ~[?:?]
> at
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
> ~[?:?]
> at
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
> ~[?:?]
> at
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
> ~[?:?]
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599)
> ~[?:?]
> at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526)
> ~[?:?]
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415)
> ~[?:?]
> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_172]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> ~[?:1.8.0_172]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> ~[?:1.8.0_172]
> at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172] {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)