Exception on opening an IdiagramElement using openDiagramElement() method

Hi guys
As you may probably know we can open an IdiagramElement from the current opening project using this way :

ApplicationManager.instance().getDiagramManager().openDiagramElement(IdiagramElement);

This works for me when i try to open an element from current opening project but it fails when i try to open an IdiagramElement from another project of my workspace

Please consider that i have read the IdiagramElement from the source project before and i have access to its object

This is my code :

// first i check if the element is inside current opening project
if (current opening project contains element) {
	ApplicationManager.instance().getDiagramManager().openDiagramElement(IdiagramElement); 
}

else{

// ask user to first open the project that contains that IDiagramElement (assume user knows what project he should open)

ApplicationManager.instance().getProjectManager().openProject();

// then open the element using same way as before
	ApplicationManager.instance().getDiagramManager().openDiagramElement(IdiagramElement);
	
	=> here is where the problem occurs .When the program reach to this point the Visual Paradigm will open the project that contains that element but i don't open the diagram that contains this shape ( it will stock on the project browser)
please also notice that i'm sure that i open the correct project (project that contains that IdiagramElement)
}

And here is the exception :

[2020/08/15 15:49:43] [warning] java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
	at v.deo.ajr.ms_(:362)
	at v.avd.cg.a(:1766)
	at v.avd.cg.a(:1943)
	at v.avd.cg.b(:1893)
	at v.avd.bd.a(:278)
	at v.avd.bd.a(:270)
	at v.avd.acc.a(:9875)
	at v.avd.acc.a(:9829)
	at v.avd.acc.a(:9818)
	at v.avd.ahx.a(:81)
	at v.cmc.rr.a(:890)
	at v.beg.j.openDiagramElement(:115)
	at ... 
	at java.desktop/java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue.access$500(Unknown Source)
	at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$3.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
	at v.deo.ady.<init>(:5774)
	at v.deo.bb.<init>(:17)
	at v.deo.bc.<init>(:9)
	at v.dfn.yj.<init>(:82)
	at v.dfn.uk.<init>(:2179)
	at v.dfn.wc.<init>(:80)

Sorry for inconvenient.

We are checking on this issue.
What’s the version and build of the Visual Paradigm you used?

Hi @mercus
I’m using Visual Paradigm 16.1 Standard Edition Build 20200609
Thank you

Hi Mamad,

Thank you for your reply. I have forwarded your case to our team to study. When there is any news I will let you know.

Best regards,
Jick Yeung

Hi @Jick
I’m still getting that error
No news about that ?

Hi Mamad,

Sorry, your case is still on the queue. I’ve just asked our engineers to take a look. When there is any news, I will let you know.

Best regards,
Jick Yeung

Hi @Jick
Is there any news?

Hi Mamad,

Your case is already in the queue. When there are any updates, I will let you know.

Best regards,
Jick Yeung