java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.lang.String)' on a null object reference

GitHub | ashish967 | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.lang.String)' on a null object reference

    GitHub | 6 months ago | ashish967
    java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.lang.String)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.lang.String)' on a null object reference

      at net.ossrs.yasea.rtmp.amf.AmfString.writeTo()
    2. net.ossrs.yasea
      WriteThread.run
      1. net.ossrs.yasea.rtmp.amf.AmfString.writeTo(AmfString.java:60)
      2. net.ossrs.yasea.rtmp.packets.VariableBodyRtmpPacket.writeVariableData(VariableBodyRtmpPacket.java:71)
      3. net.ossrs.yasea.rtmp.packets.Command.writeBody(Command.java:74)
      4. net.ossrs.yasea.rtmp.packets.RtmpPacket.writeTo(RtmpPacket.java:32)
      5. net.ossrs.yasea.rtmp.io.WriteThread.run(WriteThread.java:54)
      5 frames