Skip to content
Snippets Groups Projects
Commit cbad2b8e authored by Raphael GIRARDOT's avatar Raphael GIRARDOT Committed by Patrick MADELA
Browse files

NullPointerException avoided

parent 0ff48624
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