Package java.lang

Examples of java.lang.NullPointerException


                    throw new Exception(
                            "sorry, there is no successful connection established."
                                    + " may be the connect method is not called");

            if (SOSString.isEmpty(tableName))
                    throw new NullPointerException("tableName is null.");
            if (SOSString.isEmpty(columnName))
                    throw new NullPointerException("columnName is null.");
            if (SOSString.isEmpty(data))
                    throw new Exception("data has null value.");

            query = new StringBuffer("UPDATE ");
            if (tableNameUpperCase)
View Full Code Here


   
    private void makeResourceBundle(String locale){
         rb=ResourceBundle.getBundle("res.i18n.GnonogramsText",new Locale(locale),new ResourceBundle.Control() {
         public List<String> getFormats(String baseName) {
             if (baseName == null)
                 throw new NullPointerException();
             return Arrays.asList("properties");
         }
         public ResourceBundle newBundle(String baseName,
                                         Locale locale,
                                         String format,
                                         ClassLoader loader,
                                         boolean reload)
                          throws IllegalAccessException,
                                 InstantiationException,
                                 IOException {
             if (baseName == null || locale == null
                   || format == null || loader == null)
                 throw new NullPointerException();
             ResourceBundle bundle = null;
             if (format.equals("properties")) {
                 String bundleName = toBundleName(baseName, locale);
                 String resourceName = toResourceName(bundleName, format);
                 InputStream stream = null;
View Full Code Here

        String testResource = mapManager.get(mapResource);
        //associated server-side class for the client

        if (testResource == null) {
            throw new NullPointerException("bad resource: " + mapResource
                                           + ".  Can't map client test to server test");
        }

        //opens an http connection to the server specified by the property
        //Main.hostName at the port specified by Main.portName to the file
View Full Code Here

        String mapResource = this.getClass().getName();
        this.mapManager = MapManagerImpl.getMapManager();
        String testResource = mapManager.get(mapResource);

        if (testResource == null) {
            throw new NullPointerException("bad resource: " + mapResource
                                           + ".  Can't map client test to server test");
        }

        //opens an http connection to the server specified by the property
        //Main.hostName at the port specified by Main.portName to the file
View Full Code Here

* Append single long to the end of array buffer.
* @param long_array long[]
*/
public void append(long[] long_array) {
  if (long_array == null) {
        throw new NullPointerException();
    }
    // no additional buffer space needed
    int lastBufferIndex;
    long[] lastBuffer;
    if (bufferArrayList.size == 0) {
View Full Code Here

* Append single long to the end of array buffer.
* @param long_array long[]
*/
public void append(long[] long_array) {
  if (long_array == null) {
        throw new NullPointerException();
    }
    // no additional buffer space needed
    int lastBufferIndex;
    long[] lastBuffer;
    if (bufferArrayList.size() == 0) {
View Full Code Here

* Append an int array to the end of this buffer instance
* @param int_array int[]
*/
public void append(int[] int_array) {
    if (int_array == null) {
        throw new NullPointerException();
    }
    // no additional buffer space needed
    int lastBufferIndex;
    int[] lastBuffer;
   
View Full Code Here

     */
    public InputStream getResourceAsStream(String name)
    {

        if (name == null) {
            throw new NullPointerException("name");
        }

        try
        {
            InputStream is = null;
View Full Code Here

     * @since  JDK1.1
     */
    public InputStream getResourceAsStreamFromJar(String name) {

        if (name == null) {
            throw new NullPointerException("name");
        }

        try {
            InputStream is = null;
            synchronized(syncResourceAsStreamFromJar) {
View Full Code Here

  }

  @Override
  public Object evaluate(DeferredObject[] arguments) throws HiveException {
    if (true) {
        throw new NullPointerException("evaluate null pointer exception");
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of java.lang.NullPointerException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.