Skip to content

Commit a3c8082

Browse files
pdo-axelorpbe-axelor
authored andcommitted
Improve initial logo loading
Caught NPE when first loading logo seems to cause initial delay. Fixes #1391
1 parent 28cbaac commit a3c8082

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

axelor-web/src/main/java/com/axelor/web/service/InfoService.java

+4
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,10 @@ private Object getImage(
390390
}
391391

392392
private Object getImage(String imageCall, String mode) throws Exception {
393+
if (StringUtils.isBlank(imageCall)) {
394+
return null;
395+
}
396+
393397
final String[] parts = imageCall.split("\\:", 2);
394398

395399
if (parts.length != 2) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Improve initial logo loading
3+
type: feature
4+
description: |
5+
Caught NPE when first loading logo seems to cause initial delay.

0 commit comments

Comments
 (0)