From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Java Empty entry in java.awt.Frame[]
Date: Fri, 17 Sep 2010 14:24:05 +0000 (UTC)
Organization: King's College London
Lines: 13
Message-ID: <i6vtm4$b07$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1284733445 11271 (17 Sep 2010 14:24:05 GMT)
NNTP-Posting-Date: Fri, 17 Sep 2010 14:24:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1477
Xref: comp.soft-sys.matlab:670907

Any thoughts on how to handle this:

    [com.mathworks.mde.desk.MLMainFrame                ]
    [javax.swing.SwingUtilities$SharedOwnerFrame       ]
    [com.mathworks.mwswing.desk.DTSingleClientFrame    ]
    [ij.gui.ImageWindow                                ]

This java.awt.Frame array is returned to MATLAB by a call to getFrames() and includes an 'empty' entry (at the end in this case).
Subsreferencing  the empty element crashes MATLAB with a segmentation error. How can I get around this?