Home
last modified time | relevance | path

Searched refs:NullPointerException (Results 1 – 25 of 11103) sorted by relevance

12345678910>>...445

/external/mockito/src/test/java/org/mockitousage/
DCompilationWarningsTest.java24 doThrow(new NullPointerException()) in no_warnings_for_most_common_api()
27 doThrow(new NullPointerException(), new IllegalArgumentException()) in no_warnings_for_most_common_api()
30 doThrow(NullPointerException.class) in no_warnings_for_most_common_api()
41 .doThrow(new NullPointerException()) in no_warnings_for_most_common_api()
45 .doThrow(new NullPointerException(), new IllegalArgumentException()) in no_warnings_for_most_common_api()
49 .doThrow(NullPointerException.class) in no_warnings_for_most_common_api()
57 .thenThrow(new NullPointerException()); in no_warnings_for_most_common_api()
59 .thenThrow(new NullPointerException(), new IllegalArgumentException()); in no_warnings_for_most_common_api()
61 .thenThrow(NullPointerException.class); in no_warnings_for_most_common_api()
70 .thenThrow(new NullPointerException()); in no_warnings_for_most_common_api()
[all …]
/external/nist-sip/java/gov/nist/javax/sip/header/
DHeaderFactoryImpl.java90 throw new NullPointerException("the encoding parameter is null"); in createAcceptEncodingHeader()
111 throw new NullPointerException("contentType or subtype is null "); in createAcceptHeader()
128 throw new NullPointerException("null arg"); in createAcceptLanguageHeader()
144 throw new NullPointerException("null arg alertInfo"); in createAlertInfoHeader()
163 throw new NullPointerException("null arg eventType"); in createAllowEventsHeader()
179 throw new NullPointerException("null arg method"); in createAllowHeader()
199 throw new NullPointerException("null arg response"); in createAuthenticationInfoHeader()
218 throw new NullPointerException("null arg scheme "); in createAuthorizationHeader()
242 throw new NullPointerException("null arg method"); in createCSeqHeader()
270 throw new NullPointerException("null arg callId"); in createCallIdHeader()
[all …]
DAuthenticationHeader.java129 throw new NullPointerException("null value"); in setParameter()
198 throw new NullPointerException( in setRealm()
229 throw new NullPointerException( in setNonce()
263 throw new NullPointerException("Null URI"); in setURI()
295 throw new NullPointerException("null arg"); in setAlgorithm()
323 throw new NullPointerException("null arg"); in setQop()
351 throw new NullPointerException("null arg"); in setOpaque()
379 throw new NullPointerException("null arg"); in setDomain()
474 throw new NullPointerException("Null parameter"); in setResponse()
514 throw new NullPointerException( in setIK()
[all …]
/external/truth/core/src/test/java/com/google/common/truth/
DThrowableSubjectTest.java36 NullPointerException npe = new NullPointerException("message"); in hasMessageThat()
42 assertThat(new NullPointerException()).hasMessageThat().isNull(); in hasMessageThat_null()
43 assertThat(new NullPointerException(null)).hasMessageThat().isNull(); in hasMessageThat_null()
48 NullPointerException actual = new NullPointerException("message"); in hasMessageThat_failure()
56 expectFailureWhenTestingThat(new NullPointerException("message")).hasMessageThat().isNull(); in hasMessageThat_MessageHasNullMessage_failure()
61 NullPointerException npe = new NullPointerException(null); in hasMessageThat_NullMessageHasMessage_failure()
127 NullPointerException expected = new NullPointerException("expected"); in inheritedMethodChainsSubject()
128 NullPointerException actual = new NullPointerException("actual"); in inheritedMethodChainsSubject()
/external/jsilver/src/org/clearsilver/jni/
DJniHdf.java102 throw new NullPointerException("HDF is closed."); in readFile()
109 throw new NullPointerException("HDF is closed."); in fileLoad()
113 throw new NullPointerException("No fileLoader specified."); in fileLoad()
117 throw new NullPointerException("CSFileLoader.load() returned null"); in fileLoad()
146 throw new NullPointerException("HDF is closed."); in writeFile()
156 throw new NullPointerException("HDF is closed."); in readString()
165 throw new NullPointerException("HDF is closed."); in writeString()
175 throw new NullPointerException("HDF is closed."); in getIntValue()
184 throw new NullPointerException("HDF is closed."); in getValue()
192 throw new NullPointerException("HDF is closed."); in setValue()
[all …]
DJniCs.java88 throw new NullPointerException("CS is closed."); in parseFile()
95 throw new NullPointerException("CS is closed."); in parseStr()
102 throw new NullPointerException("CS is closed."); in render()
111 throw new NullPointerException("CS is closed."); in fileLoad()
115 throw new NullPointerException("No fileLoader specified."); in fileLoad()
119 throw new NullPointerException("CSFileLoader.load() returned null"); in fileLoad()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingConsecutiveAnswersTest.java89 .thenThrow(new NullPointerException(), new RuntimeException()) in should_return_consecutive_value_and_throw_exceptions_set_by_shorten_return_methods()
99 } catch (NullPointerException expected) { in should_return_consecutive_value_and_throw_exceptions_set_by_shorten_return_methods()
119 .thenThrow(new NullPointerException()); in should_throw_consecutively()
136 } catch (NullPointerException expected) { in should_throw_consecutively()
142 } catch (NullPointerException expected) { in should_throw_consecutively()
152 new NullPointerException()); in should_throw_consecutively_set_by_shorten_then_throw_method()
169 } catch (NullPointerException expected) { in should_throw_consecutively_set_by_shorten_then_throw_method()
175 } catch (NullPointerException expected) { in should_throw_consecutively_set_by_shorten_then_throw_method()
205 NullPointerException.class); in should_throw_consecutively_classes_set_by_shorten_then_throw_method()
222 } catch (NullPointerException expected) { in should_throw_consecutively_classes_set_by_shorten_then_throw_method()
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/function/
DObjects.java74 … public static <T> @Nonnull T requireNonNull(@Nullable final T value) throws NullPointerException { in requireNonNull()
98 … T value, @Nonnull final FailableSupplier<T, E> defaultValueSupplier) throws NullPointerException { in requireNonNull()
124 … T requireNonNull(@Nullable final T value, @Nonnull final String msg) throws NullPointerException { in requireNonNull()
126 throw new NullPointerException(msg); in requireNonNull()
143 …@Nullable final T value, @Nonnull final Supplier<String> msgSupplier) throws NullPointerException { in requireNonNull()
145 throw new NullPointerException(msgSupplier.get()); in requireNonNull()
161 …equireNonNull(@Nullable final T value, @Nonnull final T defaultValue) throws NullPointerException { in requireNonNull()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/
DHkdfTest.java42 assertThrows(NullPointerException.class, () -> new Hkdf(null)); in constructor()
52 assertThrows(NullPointerException.class, () -> hkdf.extract(null, new byte[0])); in extract()
53 assertThrows(NullPointerException.class, () -> hkdf.extract(new byte[0], null)); in extract()
54 assertThrows(NullPointerException.class, () -> hkdf.extract(null, null)); in extract()
62 assertThrows(NullPointerException.class, () -> hkdf.expand(null, new byte[0], 1)); in expand()
63 assertThrows(NullPointerException.class, () -> hkdf.expand(new byte[macLen], null, 1)); in expand()
64 assertThrows(NullPointerException.class, () -> hkdf.expand(null, null, 1)); in expand()
65 assertThrows(NullPointerException.class, () -> hkdf.expand(null, null, 1)); in expand()
/external/conscrypt/common/src/test/java/org/conscrypt/
DHkdfTest.java38 assertThrows(NullPointerException.class, () -> new Hkdf(null)); in constructor()
48 assertThrows(NullPointerException.class, () -> hkdf.extract(null, new byte[0])); in extract()
49 assertThrows(NullPointerException.class, () -> hkdf.extract(new byte[0], null)); in extract()
50 assertThrows(NullPointerException.class, () -> hkdf.extract(null, null)); in extract()
58 assertThrows(NullPointerException.class, () -> hkdf.expand(null, new byte[0], 1)); in expand()
59 assertThrows(NullPointerException.class, () -> hkdf.expand(new byte[macLen], null, 1)); in expand()
60 assertThrows(NullPointerException.class, () -> hkdf.expand(null, null, 1)); in expand()
61 assertThrows(NullPointerException.class, () -> hkdf.expand(null, null, 1)); in expand()
/external/opencensus-java/api/src/test/java/io/opencensus/tags/
DNoopTagsTest.java82 thrown.expect(NullPointerException.class); in noopTagsComponent_SetState_DisallowsNull()
123 thrown.expect(NullPointerException.class); in noopTagger_ToBuilder_DisallowsNull()
130 thrown.expect(NullPointerException.class); in noopTagger_WithTagContext_DisallowsNull()
149 thrown.expect(NullPointerException.class); in noopTagContextBuilder_Put_DisallowsNullKey()
156 thrown.expect(NullPointerException.class); in noopTagContextBuilder_Put_DisallowsNullValue()
163 thrown.expect(NullPointerException.class); in noopTagContextBuilder_Put_DisallowsNullTagMetadata()
170 thrown.expect(NullPointerException.class); in noopTagContextBuilder_Remove_DisallowsNullKey()
200 thrown.expect(NullPointerException.class); in noopTagContextBinarySerializer_ToByteArray_DisallowsNull()
208 thrown.expect(NullPointerException.class); in noopTagContextBinarySerializer_FromByteArray_DisallowsNull()
224 thrown.expect(NullPointerException.class); in noopTagContextTextFormat_inject_DisallowsNullTagContext()
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/
DValidateTest.java149 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notNull(nu… in shouldThrowExceptionWithDefaultMessageForNullReference()
169 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notNull(nu… in shouldThrowExceptionWithGivenMessageForNullReference()
197 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notEmpty((… in shouldThrowNullPointerExceptionWithDefaultMessageForNullArray()
224 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notEmpty((… in shouldThrowNullPointerExceptionWithGivenMessageForNullArray()
255 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notEmpty((… in shouldThrowNullPointerExceptionWithDefaultMessageForNullCollection()
282 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notEmpty((… in shouldThrowNullPointerExceptionWithGivenMessageForNullCollection()
313 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notEmpty((… in shouldThrowNullPointerExceptionWithDefaultMessageForNullMap()
340 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notEmpty((… in shouldThrowNullPointerExceptionWithGivenMessageForNullMap()
370 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notEmpty((… in shouldThrowNullPointerExceptionWithDefaultMessageForNullCharSequence()
396 …final NullPointerException ex = assertThrows(NullPointerException.class, () -> Validate.notEmpty((… in shouldThrowNullPointerExceptionWithGivenMessageForNullCharSequence()
[all …]
DClassPathUtilsTest.java60 assertThrows(NullPointerException.class, in testToFullyQualifiedNameNullClassString()
66 …assertThrows(NullPointerException.class, () -> ClassPathUtils.toFullyQualifiedName(ClassPathUtils.… in testToFullyQualifiedNameClassNull()
79 assertThrows(NullPointerException.class, in testToFullyQualifiedNameNullPackageString()
85 assertThrows(NullPointerException.class, in testToFullyQualifiedNamePackageNull()
99 assertThrows(NullPointerException.class, in testToFullyQualifiedPathClassNullString()
105 …assertThrows(NullPointerException.class, () -> ClassPathUtils.toFullyQualifiedPath(ClassPathUtils.… in testToFullyQualifiedPathClassNull()
118 assertThrows(NullPointerException.class, in testToFullyQualifiedPathPackageNullString()
124 assertThrows(NullPointerException.class, in testToFullyQualifiedPathPackageNull()
DThreadUtilsTest.java174 assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadGroupsByName(null)); in testNullThreadGroupName()
179 assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadsByName(null)); in testNullThreadName()
184 …assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadsByName("tname", (ThreadGroup… in testNullThreadThreadGroup1()
189 …assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadById(1L, (ThreadGroup) null)); in testNullThreadThreadGroup2()
194 …assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadsByName(null, (ThreadGroup) n… in testNullThreadThreadGroup3()
199 … assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadsByName(null, "tgname")); in testNullThreadThreadGroupName1()
204 …assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadsByName("tname", (String) nul… in testNullThreadThreadGroupName2()
209 …assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadsByName(null, (String) null)); in testNullThreadThreadGroupName3()
277 …assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadById(Thread.currentThread().g… in testThreadGroupsByIdFail()
282 …assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadGroups(null, true, ThreadUtil… in testThreadGroupsNullParent()
[all …]
/external/testng/src/test/java/test/asserttests/
DAssertTest.java94 NullPointerException npe = new NullPointerException(); in expectThrowsReturnsTheSameObjectThrown()
103 NullPointerException npe = new NullPointerException(); in expectThrowsDetectsTypeMismatchesViaExplicitTypeHint()
110 NullPointerException npe = new NullPointerException("inner-message"); in expectThrowsWrapsAndPropagatesUnexpectedExceptions()
124 NullPointerException npe = new NullPointerException(); in expectThrowsSuppliesACoherentErrorMessageUponTypeMismatch()
/external/guava/android/guava/src/com/google/common/base/
DPreconditions.java904 throw new NullPointerException(); in checkNotNull()
922 throw new NullPointerException(String.valueOf(errorMessage)); in checkNotNull()
948 throw new NullPointerException(lenientFormat(errorMessageTemplate, errorMessageArgs)); in checkNotNull()
964 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1)); in checkNotNull()
979 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1)); in checkNotNull()
995 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1)); in checkNotNull()
1011 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1)); in checkNotNull()
1027 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1, p2)); in checkNotNull()
1043 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1, p2)); in checkNotNull()
1059 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1, p2)); in checkNotNull()
[all …]
/external/guava/guava/src/com/google/common/base/
DPreconditions.java904 throw new NullPointerException(); in checkNotNull()
922 throw new NullPointerException(String.valueOf(errorMessage)); in checkNotNull()
948 throw new NullPointerException(lenientFormat(errorMessageTemplate, errorMessageArgs)); in checkNotNull()
964 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1)); in checkNotNull()
979 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1)); in checkNotNull()
995 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1)); in checkNotNull()
1011 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1)); in checkNotNull()
1027 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1, p2)); in checkNotNull()
1043 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1, p2)); in checkNotNull()
1059 throw new NullPointerException(lenientFormat(errorMessageTemplate, p1, p2)); in checkNotNull()
[all …]
/external/dagger2/java/dagger/internal/
DPreconditions.java35 throw new NullPointerException(); in checkNotNull()
50 throw new NullPointerException(errorMessage); in checkNotNull()
64 throw new NullPointerException("Cannot return null from a non-@Nullable @Provides method"); in checkNotNullFromProvides()
78 throw new NullPointerException("Cannot return null from a non-@Nullable component method"); in checkNotNullFromComponent()
114 throw new NullPointerException(errorMessageTemplate.replace("%s", argString)); in checkNotNull()
/external/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/ast/
DThrowExprTest.java25 TypeNode npeType = TypeNode.withExceptionClazz(NullPointerException.class); in createThrowExpr_basic()
32 TypeNode npeType = TypeNode.withExceptionClazz(NullPointerException.class); in createThrowExpr_basicExpr()
50 TypeNode npeType = TypeNode.withExceptionClazz(NullPointerException.class); in createThrowExpr_basicWithStringMessage()
57 TypeNode npeType = TypeNode.withExceptionClazz(NullPointerException.class); in createThrowExpr_messageExpr()
76 TypeNode npeType = TypeNode.withExceptionClazz(NullPointerException.class); in createThrowExpr_badMessageExpr()
87 TypeNode.withReference(ConcreteReference.withClazz(NullPointerException.class)); in createThrowExpr_causeExpr()
101 TypeNode.withReference(ConcreteReference.withClazz(NullPointerException.class)); in createThrowExpr_causeExpr_throwableSubtype()
115 TypeNode.withReference(ConcreteReference.withClazz(NullPointerException.class)); in createThrowExpr_causeExpr_onThrowableSubtype()
128 TypeNode.withReference(ConcreteReference.withClazz(NullPointerException.class)); in createThrowExpr_messageAndCauseExpr()
/external/dagger2/javatests/dagger/functional/nullables/
DJspecifyNullableTest.java105 NullPointerException expectedException = in testWithNull()
106 assertThrows(NullPointerException.class, component::getInt); in testWithNull()
110 NullPointerException expectedException2 = in testWithNull()
111 assertThrows(NullPointerException.class, component::getInnerType); in testWithNull()
115 NullPointerException expectedException3 = in testWithNull()
116 assertThrows(NullPointerException.class, () -> component.getDependencyProvider().get()); in testWithNull()
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/
DMetricOptionsTest.java46 thrown.expect(NullPointerException.class); in nullDescription()
53 thrown.expect(NullPointerException.class); in nullUnit()
60 thrown.expect(NullPointerException.class); in nullLabelKeys()
68 thrown.expect(NullPointerException.class); in labelKeys_WithNullElement()
85 thrown.expect(NullPointerException.class); in nullConstantLabels()
93 thrown.expect(NullPointerException.class); in constantLabels_WithNullKey()
101 thrown.expect(NullPointerException.class); in constantLabels_WithNullValue()
/external/nist-sip/java/gov/nist/javax/sip/address/
DAddressFactoryImpl.java78 throw new NullPointerException("null URI"); in createAddress()
95 throw new NullPointerException("null URI"); in createSipURI()
115 throw new NullPointerException("null host"); in createSipURI()
150 throw new NullPointerException("null url"); in createTelURL()
163 throw new NullPointerException("null address"); in createAddress()
183 throw new NullPointerException("null address"); in createAddress()
209 throw new NullPointerException("null arg"); in createURI()
/external/sdk-platform-java/java-core/google-cloud-core/src/test/java/com/google/cloud/
DExceptionHandlerTest.java62 public String call() throws NullPointerException { in testVerifyCaller()
85 .retryOn(FileNotFoundException.class, NullPointerException.class) in testVerifyCaller()
117 .retryOn(IOException.class, NullPointerException.class) in testShouldTry()
128 assertTrue(handler.shouldRetry(new NullPointerException(), null)); in testShouldTry()
152 assertFalse(handler.shouldRetry(new NullPointerException(), null)); in testShouldTry()
159 assertTrue(handler.shouldRetry(new NullPointerException(), null)); in testShouldTry()
166 assertFalse(handler.shouldRetry(new NullPointerException(), null)); in testShouldTry()
169 @Test(expected = NullPointerException.class)
190 @Test(expected = NullPointerException.class)
/external/nist-sip/java/gov/nist/javax/sip/header/ims/
DPAccessNetworkInfo.java80 throw new NullPointerException( in setAccessType()
103 throw new NullPointerException( in setCGI3GPP()
129 throw new NullPointerException( in setUtranCellID3GPP()
154 throw new NullPointerException( in setDSLLocation()
178 throw new NullPointerException( in setCI3GPP2()
234 throw new NullPointerException( in setExtensionAccessInfo()
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/reflect/
DFieldUtilsTest.java111 assertThrows(NullPointerException.class, () -> FieldUtils.getField(null, "none")); in testGetFieldIllegalArgumentException1()
150 assertThrows(NullPointerException.class, () -> FieldUtils.getField(null, "none", true)); in testGetFieldForceAccessIllegalArgumentException1()
224 …assertThrows(NullPointerException.class, () -> FieldUtils.getFieldsWithAnnotation(FieldUtilsTest.c… in testGetFieldsWithAnnotationIllegalArgumentException1()
229 …assertThrows(NullPointerException.class, () -> FieldUtils.getFieldsWithAnnotation(null, Annotated.… in testGetFieldsWithAnnotationIllegalArgumentException2()
234 … assertThrows(NullPointerException.class, () -> FieldUtils.getFieldsWithAnnotation(null, null)); in testGetFieldsWithAnnotationIllegalArgumentException3()
252 …assertThrows(NullPointerException.class, () -> FieldUtils.getFieldsListWithAnnotation(FieldUtilsTe… in testGetFieldsListWithAnnotationIllegalArgumentException1()
257 …assertThrows(NullPointerException.class, () -> FieldUtils.getFieldsListWithAnnotation(null, Annota… in testGetFieldsListWithAnnotationIllegalArgumentException2()
262 …assertThrows(NullPointerException.class, () -> FieldUtils.getFieldsListWithAnnotation(null, null)); in testGetFieldsListWithAnnotationIllegalArgumentException3()
286 assertThrows(NullPointerException.class, () -> FieldUtils.getDeclaredField(null, "none")); in testGetDeclaredFieldAccessIllegalArgumentException1()
325 … assertThrows(NullPointerException.class, () -> FieldUtils.getDeclaredField(null, "none", true)); in testGetDeclaredFieldForceAccessIllegalArgumentException1()
[all …]

12345678910>>...445