Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for NullPointerException (0.24 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

        val next = copy(index = index + 1, request = request)
        val interceptor = interceptors[index]
    
        @Suppress("USELESS_ELVIS")
        val response =
          interceptor.intercept(next) ?: throw NullPointerException(
            "interceptor $interceptor returned null",
          )
    
        if (exchange != null) {
          check(index + 1 >= interceptors.size || next.calls == 1) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt

          throw AssertionError(e)
        } catch (e: InvocationTargetException) {
          // https://github.com/square/okhttp/issues/5587
          val cause = e.cause
          when {
            cause is NullPointerException && cause.message == "ssl == null" -> null
            else -> throw AssertionError(e)
          }
        }
      }
    
      companion object {
        val playProviderFactory: DeferredSocketAdapter.Factory =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Dns.kt

        private class DnsSystem : Dns {
          override fun lookup(hostname: String): List<InetAddress> {
            try {
              return InetAddress.getAllByName(hostname).toList()
            } catch (e: NullPointerException) {
              throw UnknownHostException("Broken system behaviour for dns lookup of $hostname").apply {
                initCause(e)
              }
            }
          }
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_3x.md

    ## Version 3.14.4
    
    _2019-09-29_
    
     *  Fix: Cancel calls that fail due to unexpected exceptions. We had a bug where an enqueued call
        would never call back if it crashed with an unchecked throwable, such as a
        `NullPointerException` or `OutOfMemoryError`. We now call `Callback.onFailure()` with an
        `IOException` that reports the call as canceled. The triggering exception is still delivered to
        the thread's `UncaughtExceptionHandler`.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt

      fun onlyRoute() = routes.single()
    
      @Throws(IOException::class)
      override fun authenticate(
        route: Route?,
        response: Response,
      ): Request? {
        if (route == null) throw NullPointerException("route == null")
        responses += response
        routes += route
        if (!schemeMatches(response) || credential == null) return null
        val header =
          when (response.code) {
            407 -> "Proxy-Authorization"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Cookie.kt

            this.sameSite = sameSite
          }
    
        fun build(): Cookie {
          return Cookie(
            name ?: throw NullPointerException("builder.name == null"),
            value ?: throw NullPointerException("builder.value == null"),
            expiresAt,
            domain ?: throw NullPointerException("builder.domain == null"),
            path,
            secure,
            httpOnly,
            persistent,
            hostOnly,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

            .build()
        assertThat(headers.toString()).isEqualTo("header1: valué1\n")
      }
    
      // Fails on JS, ClassCastException: Illegal cast
      @Test fun ofMapThrowsOnNull() {
        assertFailsWith<NullPointerException> {
          (mapOf("User-Agent" to null) as Map<String, String>).toHeaders()
        }
      }
    
      @Test fun toMultimapGroupsHeaders() {
        val headers =
          Headers.headersOf(
            "cache-control",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

            override fun contains(element: Protocol?): Boolean {
              if (element == null) throw NullPointerException()
              return super.contains(element)
            }
    
            override fun indexOf(element: Protocol?): Int {
              if (element == null) throw NullPointerException()
              return super.indexOf(element)
            }
          } as List<Protocol>
        val client =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_4x.md

    
    ## Version 4.9.1
    
    _2021-01-30_
    
     *  Fix: Work around a crash in Android 10 and 11 that may be triggered when two threads
        concurrently close an SSL socket. This would have appeared in crash logs as
        `NullPointerException: bio == null`.
    
    
    ## Version 4.9.0
    
    _2020-09-11_
    
    **With this release, `okhttp-tls` no longer depends on Bouncy Castle and doesn't install the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  10. CHANGELOG.md

     *  Fix: Don't close a `Deflater` while we're still using it to compress a web socket message. We
        had a severe bug where web sockets were closed on the wrong thread, which caused
        `NullPointerException` crashes in `Deflater`.
    
     *  Fix: Don't crash after a web socket fails its connection upgrade. We incorrectly released
        the web socket's connections back to the pool before their resources were cleaned up.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
Back to top