Ignore:
Timestamp:
01/27/11 14:49:51 (9 years ago)
Author:
aivar
Message:

Fixed null pointer exception when library not found.

Location:
trunk/projects/curve-fitter
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/curve-fitter/src/main/java/loci/curvefitter/SLIMCurveFitter.java

    r7575 r7596  
    142142            try { 
    143143                // extract to library path 
    144                 System.out.println("extract native library returns " + NativeLibraryUtil.extractNativeLibraryToPath(this.getClass(), "SLIMCurve-2.0-SNAPSHOT")); 
    145                  
     144                //TODO sort out the nameSystem.out.println("extract native library returns " + NativeLibraryUtil.extractNativeLibraryToPath(this.getClass(), "SLIMCurve-2.0-SNAPSHOT")); 
     145                System.out.println("extract native library returns " + NativeLibraryUtil.extractNativeLibraryToPath(this.getClass(), "slim-curve-1.0-SNAPSHOT")); 
     146 
    146147                // load once, on-demand 
    147                 s_library = (CLibrary) Native.loadLibrary("SLIMCurve", CLibrary.class); 
     148                //TODO sort out the name s_library = (CLibrary) Native.loadLibrary("SLIMCurve", CLibrary.class); 
     149               //TODO test with old code instead: s_library = (CLibrary) Native.loadLibrary("slim-curve-1.0-SNAPSHOT", CLibrary.class); 
     150                s_library = (CLibrary) Native.loadLibrary("SLIMCurve_trimmed_down", CLibrary.class); 
     151 
    148152                System.out.println("s_library is " + s_library); 
    149153            } 
Note: See TracChangeset for help on using the changeset viewer.