Changeset 9c0ae146 for apps/streaming


Ignore:
Timestamp:
Aug 2, 2016 2:56:03 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
0d5cf46, 6512a9e
Parents:
5fcafb6
Message:

Streaming: Fix debug NPE (ticket #1821)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/src/net/i2p/client/streaming/impl/Packet.java

    r5fcafb6 r9c0ae146  
    781781        if (isFlagSet(FLAG_PROFILE_INTERACTIVE)) buf.append(" INTERACTIVE");
    782782        if (isFlagSet(FLAG_RESET)) buf.append(" RESET");
    783         if (isFlagSet(FLAG_SIGNATURE_INCLUDED)) buf.append(" SIG ").append(_optionSignature.length());
     783        if (isFlagSet(FLAG_SIGNATURE_INCLUDED)) {
     784            if (_optionSignature != null)
     785                buf.append(" SIG ").append(_optionSignature.length());
     786            else
     787                buf.append(" (to be signed)");
     788        }
    784789        if (isFlagSet(FLAG_SIGNATURE_REQUESTED)) buf.append(" SIGREQ");
    785790        if (isFlagSet(FLAG_SYNCHRONIZE)) buf.append(" SYN");
Note: See TracChangeset for help on using the changeset viewer.