cxbrooks / test

Second test for bugzilla to git
0 stars 0 forks source link

Get Documentation on actor ports can give an NPE #209

Closed cxbrooks closed 14 years ago

cxbrooks commented 14 years ago

Note: the issue was created automatically with bugzilla2github tool

Original bug ID: BZ#327 From: Derik Barseghian <barseghian@nceas.ucsb.edu> Reported version: 8.1.devel CC: pt-dev@chess.eecs.berkeley.edu

cxbrooks commented 14 years ago

Steps to reproduce: Start vergil, drag a Const actor to canvas Right click on input port, Documentation => Customize Documentation. Cancel. Right click on input port, Documentation => Get Documentation.

This gives a 'Cannot find an effigy...' Error popup, and an NPE on console:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at ptolemy.vergil.basic.GetDocumentationAction.showDocAttributeTableau(GetDocumentationAction.java:421) at ptolemy.vergil.basic.GetDocumentationAction.showDocumentation(GetDocumentationAction.java:170) at ptolemy.vergil.basic.GetDocumentationAction.actionPerformed(GetDocumentationAction.java:120) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)

cxbrooks commented 14 years ago

I can reproduce this in the Ptolemy tree. The problem is that right clicking on a port, customizing the documentation and then viewing the documentation fails.

cxbrooks commented 14 years ago

Fixed by Edward. I verified the fix in the Kepler trunk and 2.0 configuration.