Skip to content
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

Organisation window is not working properly #11096

Open
cristinamghita opened this issue May 13, 2021 · 0 comments
Open

Organisation window is not working properly #11096

cristinamghita opened this issue May 13, 2021 · 0 comments

Comments

@cristinamghita
Copy link
Member

cristinamghita commented May 13, 2021

Is this a bug or feature request?

Bug

What is the current behavior?

Which are the steps to reproduce?

What is the expected or desired behavior?

The org info tab has an image field for the logo.
If that image is empty, then we get a NPE.

trace: ["java.lang.NullPointerException",…]
0: "java.lang.NullPointerException"
1: "\tat java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106)"
2: "\tat org.compiere.model.MImage.getScaledImageData(MImage.java:389)"
3: "\tat de.metas.ui.web.upload.WebuiImage.getImageData(WebuiImage.java:82)"
4: "\tat de.metas.ui.web.upload.WebuiImage.toResponseEntity(WebuiImage.java:110)"
5: "\tat de.metas.ui.web.upload.ImageRestController.lambda$getImage$1(ImageRestController.java:85)"
6: "\tat de.metas.ui.web.cache.ETagResponseEntityBuilder.toResponseEntity(ETagResponseEntityBuilder.java:230)"
7: "\tat de.metas.ui.web.upload.ImageRestController.getImage(ImageRestController.java:85)"
8: "\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"

But basically, any window that has a field which is image is not working anymore.

@cristinamghita cristinamghita added the cmp:backend backend issue (cmp="component") label May 13, 2021
@cristinamghita cristinamghita changed the title Orq is not working properly Organisation window is not working properly May 13, 2021
cristinamghita added a commit that referenced this issue May 13, 2021
#11096 Organisation window is not working properly
cristinamghita added a commit that referenced this issue May 14, 2021
#11096 Organisation window is not working properly
cristinamghita added a commit that referenced this issue May 19, 2021
#11096 Organisation window is not working properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants