Skip to content
Snippets Groups Projects
Commit 97d52f9f authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

NullPointerException avoided

parent a5320ee6
Branches
Tags
No related merge requests found
...@@ -86,7 +86,7 @@ public class VlDockDockingManager extends ADockingManager { ...@@ -86,7 +86,7 @@ public class VlDockDockingManager extends ADockingManager {
@Override @Override
public void applyPerspective(IPerspective perspective, JComponent dockingArea) throws DockingException { public void applyPerspective(IPerspective perspective, JComponent dockingArea) throws DockingException {
DockingException dockingException = null; DockingException dockingException = null;
if ((perspective != null) && (perspective.getByteArray().length > 0) if ((perspective != null) && (perspective.getByteArray() != null) && (perspective.getByteArray().length > 0)
&& (dockingArea instanceof SoleilDockingDesktop)) { && (dockingArea instanceof SoleilDockingDesktop)) {
SoleilDockingDesktop mainDockingDesktop = (SoleilDockingDesktop) dockingArea; SoleilDockingDesktop mainDockingDesktop = (SoleilDockingDesktop) dockingArea;
InputStream ois = null; InputStream ois = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment