Path: news.mathworks.com!not-for-mail
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$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1284733445 11271 172.30.248.38 (17 Sep 2010 14:24:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 17 Sep 2010 14:24:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1477
Xref: news.mathworks.com comp.soft-sys.matlab:670907

Any thoughts on how to handle this:

java.awt.Frame[]:
    [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?