[
https://issues.apache.org/jira/browse/KARAF-6949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17248961#comment-17248961
]
ASF subversion and git services commented on KARAF-6949:
--------------------------------------------------------
Commit ea18d6fce68db84d25ae3a0ac6a2a90728be5aa5 in karaf's branch
refs/heads/master from Jean-Baptiste Onofré
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=ea18d6f ]
Merge pull request #1264 from jbonofre/KARAF-6949
[KARAF-6949] Avoid potential NPE in HTTP ProxyServiceImpl
> HTTP proxy service can throw NullPointerException
> -------------------------------------------------
>
> Key: KARAF-6949
> URL: https://issues.apache.org/jira/browse/KARAF-6949
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.3.0, 4.2.9
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
>
> In some rare cases, HTTP proxy service can throw NullPointerException when
> the configurationadmin service is not there (refreshing for instance):
> {code:java}
> 2020-12-02T11:20:40,793 | ERROR | activator-1-thread-2 | ProxyServiceImpl
> | 85 - org.apache.karaf.http.core - 4.3.1.SNAPSHOT | Can't load
> proxies
> java.lang.NullPointerException: null
> at
> org.apache.felix.cm.impl.ConfigurationAdapter.getProcessedProperties(ConfigurationAdapter.java:293)
> ~[?:?]
> at
> org.apache.karaf.http.core.internal.ProxyServiceImpl.<init>(ProxyServiceImpl.java:52)
> [!/:?]
> at
> org.apache.karaf.http.core.internal.osgi.Activator.doStart(Activator.java:97)
> [!/:?]
> at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312)
> [!/:?]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [?:1.8.0_271]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_271]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> [?:1.8.0_271]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> [?:1.8.0_271]
> at java.lang.Thread.run(Thread.java:748) [?:1.8.0_271] {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)