You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ha...@apache.org on 2022/03/27 10:36:36 UTC

[activemq-nms-api] branch feature/AMQNET-745 created (now 7139680)

This is an automated email from the ASF dual-hosted git repository.

havret pushed a change to branch feature/AMQNET-745
in repository https://gitbox.apache.org/repos/asf/activemq-nms-api.git.


      at 7139680  AMQNET-745 fixed NRE for single file assembly

This branch includes the following new commits:

     new 7139680  AMQNET-745 fixed NRE for single file assembly

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[activemq-nms-api] 01/01: AMQNET-745 fixed NRE for single file assembly

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

havret pushed a commit to branch feature/AMQNET-745
in repository https://gitbox.apache.org/repos/asf/activemq-nms-api.git

commit 71396806c7090efe93485f7443134fcd71059065
Author: Yulia Fatkullina <i7...@gmail.com>
AuthorDate: Thu Dec 9 13:17:12 2021 +0300

    AMQNET-745 fixed NRE for single file assembly
    
    # Conflicts:
    #	src/nms-api/NMSConnectionFactory.cs
---
 src/nms-api/NMSConnectionFactory.cs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/nms-api/NMSConnectionFactory.cs b/src/nms-api/NMSConnectionFactory.cs
index b09ee4f..4c80e82 100644
--- a/src/nms-api/NMSConnectionFactory.cs
+++ b/src/nms-api/NMSConnectionFactory.cs
@@ -325,7 +325,11 @@ namespace Apache.NMS
 				Assembly executingAssembly = Assembly.GetExecutingAssembly();
 				try
 				{
-					pathList.Add(Path.GetDirectoryName(executingAssembly.Location));
+					var path = Path.GetDirectoryName(executingAssembly.Location);
+                    if (!string.IsNullOrEmpty(path))
+                    {
+                        pathList.Add(path);
+                    }
 				}
 				catch(Exception ex)
 				{