Java 类java.lang.NullPointerException 实例源码

项目:nightclazz-graphql    文件:AntennaFields.java   
public AntennaFields(@Nonnull String __typename, @Nullable Coordinates coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public Search(@Nonnull String __typename,
    @Nullable NearestAntennaFromOrange nearestAntennaFromOrange,
    @Nullable NearestAntennaFromBouygues nearestAntennaFromBouygues,
    @Nullable NearestAntennaFromSfr nearestAntennaFromSfr,
    @Nullable NearestAntennaFromFree nearestAntennaFromFree, @Nullable AsStreet asStreet,
    @Nullable AsCity asCity, @Nullable AsHouseNumber asHouseNumber) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.nearestAntennaFromOrange = nearestAntennaFromOrange;
  this.nearestAntennaFromBouygues = nearestAntennaFromBouygues;
  this.nearestAntennaFromSfr = nearestAntennaFromSfr;
  this.nearestAntennaFromFree = nearestAntennaFromFree;
  this.asStreet = asStreet;
  this.asCity = asCity;
  this.asHouseNumber = asHouseNumber;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromOrange(@Nonnull String __typename, @Nullable Coordinates coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromBouygues(@Nonnull String __typename,
    @Nullable Coordinates1 coordinates, @Nullable String generation, @Nullable String provider,
    @Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
    @Nullable String insee, @Nullable String city, @Nullable String addressLabel,
    @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromSfr(@Nonnull String __typename, @Nullable Coordinates2 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromFree(@Nonnull String __typename, @Nullable Coordinates3 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public AsStreet(@Nonnull String __typename, @Nullable String street, @Nullable String city,
    @Nullable String zipCode, @Nullable NearestAntennaFromOrange1 nearestAntennaFromOrange,
    @Nullable NearestAntennaFromBouygues1 nearestAntennaFromBouygues,
    @Nullable NearestAntennaFromSfr1 nearestAntennaFromSfr,
    @Nullable NearestAntennaFromFree1 nearestAntennaFromFree) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.street = street;
  this.city = city;
  this.zipCode = zipCode;
  this.nearestAntennaFromOrange = nearestAntennaFromOrange;
  this.nearestAntennaFromBouygues = nearestAntennaFromBouygues;
  this.nearestAntennaFromSfr = nearestAntennaFromSfr;
  this.nearestAntennaFromFree = nearestAntennaFromFree;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromOrange1(@Nonnull String __typename, @Nullable Coordinates4 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromBouygues1(@Nonnull String __typename,
    @Nullable Coordinates5 coordinates, @Nullable String generation, @Nullable String provider,
    @Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
    @Nullable String insee, @Nullable String city, @Nullable String addressLabel,
    @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromSfr1(@Nonnull String __typename, @Nullable Coordinates6 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromFree1(@Nonnull String __typename, @Nullable Coordinates7 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public AsCity(@Nonnull String __typename, @Nullable String city, @Nullable String zipCode,
    @Nullable NearestAntennaFromOrange2 nearestAntennaFromOrange,
    @Nullable NearestAntennaFromBouygues2 nearestAntennaFromBouygues,
    @Nullable NearestAntennaFromSfr2 nearestAntennaFromSfr,
    @Nullable NearestAntennaFromFree2 nearestAntennaFromFree) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.city = city;
  this.zipCode = zipCode;
  this.nearestAntennaFromOrange = nearestAntennaFromOrange;
  this.nearestAntennaFromBouygues = nearestAntennaFromBouygues;
  this.nearestAntennaFromSfr = nearestAntennaFromSfr;
  this.nearestAntennaFromFree = nearestAntennaFromFree;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromOrange2(@Nonnull String __typename, @Nullable Coordinates8 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromBouygues2(@Nonnull String __typename,
    @Nullable Coordinates9 coordinates, @Nullable String generation, @Nullable String provider,
    @Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
    @Nullable String insee, @Nullable String city, @Nullable String addressLabel,
    @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromSfr2(@Nonnull String __typename, @Nullable Coordinates10 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromFree2(@Nonnull String __typename, @Nullable Coordinates11 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public AsHouseNumber(@Nonnull String __typename, @Nullable String houseNumber,
    @Nullable String street, @Nullable String city, @Nullable String zipCode,
    @Nullable NearestAntennaFromOrange3 nearestAntennaFromOrange,
    @Nullable NearestAntennaFromBouygues3 nearestAntennaFromBouygues,
    @Nullable NearestAntennaFromSfr3 nearestAntennaFromSfr,
    @Nullable NearestAntennaFromFree3 nearestAntennaFromFree) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.houseNumber = houseNumber;
  this.street = street;
  this.city = city;
  this.zipCode = zipCode;
  this.nearestAntennaFromOrange = nearestAntennaFromOrange;
  this.nearestAntennaFromBouygues = nearestAntennaFromBouygues;
  this.nearestAntennaFromSfr = nearestAntennaFromSfr;
  this.nearestAntennaFromFree = nearestAntennaFromFree;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromOrange3(@Nonnull String __typename,
    @Nullable Coordinates12 coordinates, @Nullable String generation, @Nullable String provider,
    @Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
    @Nullable String insee, @Nullable String city, @Nullable String addressLabel,
    @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromBouygues3(@Nonnull String __typename,
    @Nullable Coordinates13 coordinates, @Nullable String generation, @Nullable String provider,
    @Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
    @Nullable String insee, @Nullable String city, @Nullable String addressLabel,
    @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromSfr3(@Nonnull String __typename, @Nullable Coordinates14 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:nightclazz-graphql    文件:SearchQuery.java   
public NearestAntennaFromFree3(@Nonnull String __typename, @Nullable Coordinates15 coordinates,
    @Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
    @Nullable String status, @Nullable Integer dist, @Nullable String insee,
    @Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
  if (__typename == null) {
    throw new NullPointerException("__typename can't be null");
  }
  this.__typename = __typename;
  this.coordinates = coordinates;
  this.generation = generation;
  this.provider = provider;
  this.lastUpdate = lastUpdate;
  this.status = status;
  this.dist = dist;
  this.insee = insee;
  this.city = city;
  this.addressLabel = addressLabel;
  if (fragments == null) {
    throw new NullPointerException("fragments can't be null");
  }
  this.fragments = fragments;
}
项目:OpenJSharp    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:jdk8u-jdk    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:openjdk-jdk10    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or {@code null}
 *         if the resource could not be found
 * @since  1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:openjdk9    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or {@code null}
 *         if the resource could not be found
 * @since  1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:jdk8u_jdk    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:ActivityScreens    文件:ClassesActivityScreen.java   
public static void inject(ClassesActivity activity) {
    Bundle bundle = activity.getIntent().getExtras();
    if (bundle == null) {
        throw new NullPointerException("ClassesActivity has empty Bundle. Use open() or openForResult() to launch activity.");
    }
    checkArguments(bundle);
    activity.field1 = bundle.getString("field1");
    activity.field2 = bundle.getCharSequence("field2");
    activity.field3 = bundle.getCharSequenceArray("field3");
    activity.field4 = bundle.getBundle("field4");
    activity.field5 = bundle.getParcelable("field5");
    activity.field6 = bundle.getParcelableArray("field6");
    activity.field7 = bundle.getParcelable("field7");
    activity.field8 = bundle.getStringArray("field8");
    Parcelable[] field9Value = bundle.getParcelableArray("field9");
    activity.field9 = new ParcelableClass[field9Value.length];
    System.arraycopy(field9Value, 0, activity.field9, 0, field9Value.length);
    activity.field91 = bundle.getSerializable("field91");
    activity.field92 = (SerializableClass) bundle.getSerializable("field92");
}
项目:pokersquares    文件:Chromosome.java   
/**
 * Finds a node in the tree and returns the node.
 * @param Node root of the tree
 * @param Integer id value for the node
 * @return Node object
 */
private Node findNode(Node node, Integer id) {
    Deque<Node> a = new ArrayDeque<Node>();
    a.addLast(node);
    while (!a.isEmpty()) {
        Node t = a.removeFirst();
        if (t.getID() == id) {
            return t;
        }
        if (t.getRightChild() != null) {
            a.addLast(t.getRightChild());
        }
        if (t.getLeftChild() != null){
            a.addLast(t.getLeftChild());
        }
    }
    throw new NullPointerException("Node not found.");
}
项目:Silence    文件:SmsCipher.java   
public IncomingTextMessage decrypt(Context context, IncomingTextMessage message)
    throws LegacyMessageException, InvalidMessageException,
           DuplicateMessageException, NoSessionException
{
  try {
    byte[]        decoded       = transportDetails.getDecodedMessage(message.getMessageBody().getBytes());
    SignalMessage signalMessage = new SignalMessage(decoded);
    SessionCipher sessionCipher = new SessionCipher(signalProtocolStore, new SignalProtocolAddress(message.getSender(), 1));
    byte[]        padded        = sessionCipher.decrypt(signalMessage);
    byte[]        plaintext     = transportDetails.getStrippedPaddingMessageBody(padded);

    if (message.isEndSession() && "TERMINATE".equals(new String(plaintext))) {
      signalProtocolStore.deleteSession(new SignalProtocolAddress(message.getSender(), 1));
    }

    return message.withMessageBody(new String(plaintext));
  } catch (IOException | IllegalArgumentException | NullPointerException e) {
    throw new InvalidMessageException(e);
  }
}
项目:infobip-open-jdk-8    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:jdk8u-dev-jdk    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:In-the-Box-Fork    文件:IvParameterSpecTest.java   
/**
 * IvParameterSpec(byte[] iv) constructor testing. Checks that
 * NullPointerException is thrown in the case of null input
 * array and that input array is copied during initialization.
 */
@TestTargetNew(
    level = TestLevel.COMPLETE,
    notes = "",
    method = "IvParameterSpec",
    args = {byte[].class}
)
public void testIvParameterSpec1() {
    try {
        new IvParameterSpec(null);
        fail("Should raise an NullPointerException "
                + "in the case of null byte array.");
    } catch(NullPointerException e) {
    }

    byte[] iv = new byte[] {1, 2, 3, 4, 5};
    IvParameterSpec ivps = new IvParameterSpec(iv);
    iv[0] ++;
    assertFalse("The change of input array's content should not cause "
                + "the change of internal array", iv[0] == ivps.getIV()[0]);
}
项目:jdk7-jdk    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:openjdk-source-code-learn    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:OLD-OpenJDK8    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:pluotsorbet    文件:constructor.java   
/**
 * Runs the test using the specified harness.
 *
 * @param harness  the test harness (<code>null</code> not permitted).
 */
public void test(TestHarness harness)
{
    NullPointerException object1 = new NullPointerException();
    harness.check(object1 != null);
    harness.check(object1.toString(), "java.lang.NullPointerException");

    NullPointerException object2 = new NullPointerException("nothing happens");
    harness.check(object2 != null);
    harness.check(object2.toString(), "java.lang.NullPointerException: nothing happens");

    NullPointerException object3 = new NullPointerException(null);
    harness.check(object3 != null);
    harness.check(object3.toString(), "java.lang.NullPointerException");

}
项目:openjdk-jdk7u-jdk    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:openjdk-icedtea7    文件:AppletClassLoader.java   
/**
 * Returns an input stream for reading the specified resource from the
 * the loaded jar files.
 *
 * The search order is described in the documentation for {@link
 * #getResource(String)}.<p>
 *
 * @param  name the resource name
 * @return an input stream for reading the resource, or <code>null</code>
 *         if the resource could not be found
 * @since  JDK1.1
 */
public InputStream getResourceAsStreamFromJar(String name) {

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

    try {
        InputStream is = null;
        synchronized(syncResourceAsStreamFromJar) {
            resourceAsStreamFromJarInCall = true;
            // Call super class
            is = super.getResourceAsStream(name);
            resourceAsStreamFromJarInCall = false;
        }

        return is;
    } catch (Exception e) {
        return null;
    }
}
项目:openjdk-jdk10    文件:ParsingTest.java   
private static void checkNull(int start, int end, int radix) {
    int n = 0;
    try {
        n = Integer.parseInt(null, start, end, radix);
        System.err.println("parseInt(null, " + start + ", " + end + ", " + radix +
                ") incorrectly returned " + n);
        throw new RuntimeException();
    } catch (NullPointerException npe) {
        ; // Expected
    }
}