Kaydet (Commit) 9ca4c4f0 authored tarafından Noel Grandin's avatar Noel Grandin

cid#1326334 Unguarded read

Change-Id: I8cfe2805f2b8c1ae23fa955a28ff9ec43f353e38
üst 1d3fc27b
......@@ -75,18 +75,6 @@ public class LocalOfficeWindow
return this;
}
/**
* Retrieves an UNO XWindowPeer object associated with the OfficeWindow.
*
* @return The UNO XWindowPeer object associated with the OfficeWindow.
*/
public XWindowPeer getUNOWindowPeer()
{
if (mWindow == null)
createUNOWindowPeer();
return mWindow;
}
/**
* Receives a notification about the connection has been closed.
* This method has to set the connection to <code>null</code>.
......@@ -171,11 +159,16 @@ public class LocalOfficeWindow
releaseSystemWindow();
}
/** Factory method for a UNO AWT toolkit window as a child of this Java window.
*
*/
private synchronized XWindowPeer createUNOWindowPeer()
{
/**
* Retrieves an UNO XWindowPeer object associated with the OfficeWindow.
*
* @return The UNO XWindowPeer object associated with the OfficeWindow.
*/
public synchronized XWindowPeer getUNOWindowPeer()
{
if (mWindow != null)
return mWindow;
try
{
// get this windows native window type
......@@ -217,6 +210,7 @@ public class LocalOfficeWindow
return mWindow;
}
/** We make sure that the office window is notified that the parent
* will be removed.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment