Skip to content

Commit

Permalink
fix for UploadDownloadPanelFactory (MID-6028)
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 13, 2020
1 parent c919152 commit 951391e
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -55,6 +55,9 @@ protected Panel getPanel(PrismPropertyPanelContext<T> panelCtx) {
@Override
public InputStream getStream() {
T object = panelCtx.getRealValueModel().getObject();
if (object instanceof String) {
return new ByteArrayInputStream(((String)object).getBytes());
}
return object != null ? new ByteArrayInputStream((byte[]) object) : new ByteArrayInputStream(new byte[0]);
}

Expand Down

0 comments on commit 951391e

Please sign in to comment.