8000 Null pointer exception when setting certificates · Issue #341 · wultra/java-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Null pointer exception when setting certificates #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
romanstrobl opened this issue Jan 10, 2025 · 0 comments
Closed

Null pointer exception when setting certificates #341

romanstrobl opened this issue Jan 10, 2025 · 0 comments
Assignees

Comments

@romanstrobl
Copy link
Member
romanstrobl commented Jan 10, 2025

Affected product(s) and version(s)

No response

Environment

No response

Steps to reproduce, current result, expected result

Null pointer exception occurs when setting null value of keyStoreContent or trustStoreContent.

Log output

Exception in thread "callbackUrlEventsThreadPoolExecutor-1" java.lang.NullPointerException: Cannot read the array length because "keyStoreBytes" is null
	at com.wultra.core.rest.client.base.RestClientConfiguration.setKeyStoreBytes(RestClientConfiguration.java:546)
	at com.wultra.core.rest.client.base.DefaultRestClient$CertificateAuthBuilder.keyStoreBytes(DefaultRestClient.java:1305)
	at io.getlime.security.powerauth.app.server.service.callbacks.CallbackUrlRestClientCacheLoader.initializeRestClient(CallbackUrlRestClientCacheLoader.java:137)
	at io.getlime.security.powerauth.app.server.service.callbacks.CallbackUrlRestClientCacheLoader.createNewCachedRestClient(CallbackUrlRestClientCacheLoader.java:97)
	at io.getlime.security.powerauth.app.server.service.callbacks.CallbackUrlRestClientCacheLoader.load(CallbackUrlRestClientCacheLoader.java:73)
	at io.getlime.security.powerauth.app.server.service.callbacks.CallbackUrlRestClientCacheLoader.load(CallbackUrlRestClientCacheLoader.java:54)
	at com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$3(LocalLoadingCache.java:183)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2688)
	at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1916)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2686)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2669)
	at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112)
	at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:58)
	at io.getlime.security.powerauth.app.server.service.callbacks.CallbackUrlEventService.getRestClient(CallbackUrlEventService.java:297)
	at io.getlime.security.powerauth.app.server.service.callbacks.CallbackUrlEventService.postCallback(CallbackUrlEventService.java:246)
	at io.getlime.security.powerauth.app.server.service.callbacks.CallbackUrlEventService.dispatchInstantCallbackUrlEvent(CallbackUrlEventService.java:75)

JIRA issue code

No response

@romanstrobl romanstrobl self-assigned this Jan 10, 2025
romanstrobl added a commit that referenced this issue Jan 10, 2025
Fix #341: Null pointer exception when setting certificates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0