Merge pull request #149 from Arth-ur/master

Add default value for system property 'os.arch_full'
This commit is contained in:
Will Hedgecock 2018-09-25 09:10:44 -05:00 committed by GitHub
commit 2945c6826c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
{