Handling Exception using JCo 3.0 on JcoContext.end()

As per my understanding, JCoContext.end() method will raise an exception if passed parameter is NULL or you have a bug in JCo. You need to ensure that destination is not null.

This method should only be called, if destination is not null i.e.

SAP Thread