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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
/** * 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; } }
/** * 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; } }
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"); }
/** * 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."); }
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); } }
/** * 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]); }
/** * 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"); }
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 } }