Trying to create data type from selected with data types

Ignition 7.7.4 on Java 1.8.0_45 on Windows 7
I have a bunch of data types inside a folder, along with some plain tags. When I select the plain tags, right click, and choose “Create Data Type from Selected”, I get a new data type editor, as expected. However, if my selection includes any instances of my other data type, and I do the same thing, I get an error mesage:

Message:

Details:

[quote]java.lang.NullPointerException
at com.inductiveautomation.ignition.common.sqltags.TagDefinition.setAttribute(TagDefinition.java:204)
at com.inductiveautomation.ignition.common.sqltags.udt.ComplexTagDefinition.addTagMembersDeep(ComplexTagDefinition.java:385)
at com.inductiveautomation.ignition.common.sqltags.udt.ComplexTagDefinition.createTypeFrom(ComplexTagDefinition.java:364)
at com.inductiveautomation.ignition.designer.sqltags.action.TagsToUDTAction.actionPerformed(TagsToUDTAction.java:63)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Ignition v7.7.4 (b2015033012)
Java: Oracle Corporation 1.8.0_45[/quote]

Not sure if I should be able to do this, but if I can’t, a more explanatory error message would be nice.

So creating a data type from a UDT instance should not be allowed, in the sense that if a UDT instance is selected, the option to create a data type should be grayed out and unselectable. This was found to be a bug, and a bug report has been filed for our developers to work into a future release.

Hi,

Actually, I think in the relatively simple case you’re describing, this should work. You’ve just run into a very minor bug… once I fixed the error you hit, everything seemed to be fine. I think it will make it into 7.7.5 final, but I’ll have to post back when I know for sure.

Regards,

Sounds great. Wasn’t a huge deal, but thought you guys would like to know. Thanks!