javacommons/utils/javasrc/com/nokia/mj/impl/rt/j9/JvmPortCommon.java
changeset 80 d6dafc5d983f
parent 21 2a9601315dfc
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
    46     /**
    46     /**
    47      * @see com.nokia.mj.impl.runtimesupport.JvmPort#getResourceAsNativeMemory.
    47      * @see com.nokia.mj.impl.runtimesupport.JvmPort#getResourceAsNativeMemory.
    48      */
    48      */
    49     public final NativeMemoryBlock getResourceAsNativeMemory(String jarPath, String resName)
    49     public final NativeMemoryBlock getResourceAsNativeMemory(String jarPath, String resName)
    50     {
    50     {
    51         return new NativeMemoryBlockImpl(jarPath, resName);
    51         NativeMemoryBlock nativeMemoryBlock = new NativeMemoryBlockImpl(jarPath, resName);
       
    52         if (nativeMemoryBlock.getPointer() != 0)
       
    53         {
       
    54             return nativeMemoryBlock;
       
    55         }
       
    56         return null;
    52     }
    57     }
    53 
    58 
    54     /**
    59     /**
    55      * @see com.nokia.mj.impl.runtimesupport.JvmPort#disableRuntimeExit.
    60      * @see com.nokia.mj.impl.runtimesupport.JvmPort#disableRuntimeExit.
    56      */
    61      */