Add default value for system property 'os.arch_full'

This commit is contained in:
Arthur Gay 2018-09-25 15:04:21 +02:00
parent 7a94becc21
commit b0e1daa46a
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public final class SerialPort
}
else if ((OS.indexOf("nix") >= 0) || (OS.indexOf("nux") >= 0))
{
if (!System.getProperty("os.arch_full").isEmpty())
if (!System.getProperty("os.arch_full", "").isEmpty())
libraryPath = "Linux/" + System.getProperty("os.arch_full").toLowerCase();
else if (System.getProperty("os.arch").indexOf("arm") >= 0)
{