SCP-PJIN-008-J

SCP logo.svg
SCP-PJIN
This article is part of SCP-PJIN, an unofficial "SCP" (Secure, Contain, Protect) series similar to the official SCP Wiki. Because the SCPs in SCP-PJIN pertain to highly niche topics, they are unsuitable for inclusion in the main SCP wiki; nevertheless, it still shares many similarities with official SCPs. See SCP-PJIN for more information.

SCP-PJIN-008-J-1

Item #: SCP-PJIN-008-J-1

Object Class: Integer

Special Containment Procedures: SCP-PJIN-008-J-1 may be wrapped or "boxed" in an object of type java.lang.Integer.

Description: SCP-PJIN-008-J-1 is any int instance in the "Java" programming language.

SCP-PJIN-008-J-2

Item #: SCP-PJIN-008-J-2

Object Class: String

Special Containment Procedures: None, it's already a subclass of java.lang.Object.

Description: SCP-PJIN-008-J-2 is any string literal in the "Java" programming language.

SCP-PJIN-008-J-3

Item #: SCP-PJIN-008-J-3

Object Class: NullPointerException

Special Containment Procedures: Instances of SCP-PJIN-008-J-3 can be contained using "debuggers", assigning values other than null to objects, or (not recommended) wrapping the instance in a "try-catch" block.

Description: SCP-PJIN-008-J-3 is any instance of NullPointerException in the "Java" programming language. SCP-PJIN-008-J-3 instances manifest themselves whenever there is an attempt to access a non-shared function of an object variable whose value is set to "null". Whenever this happens, if not contained or "caught" by the surrounding code, SCP-PJIN-008-J-3 will forcefully terminate execution of the program. This has led to chaos and downtime in various server environments, as those systems abruptly stop whenever uncaught instances of SCP-PJIN-008-J-3 manifest.

Example of code that will cause SCP-PJIN-008-J-3 to manifest:

public class SCP_PJIN_008_J_3 {
    public static void myFunc(String i) {
        System.out.println(i.intern() + " world");
    }
    public static void main(String[] args) {
        String i = null;
        myFunc(i);
    }
}

SCP-PJIN-008-J-3 was independently discovered by D-1997 while attempting to write containment procedures for SCP-████. In D-1997's words: "I have never seen anything worse than a simple typo that caused my program to come to a complete halt."

« SCP-PJIN-007-J | SCP-PJIN-008-J | SCP-PJIN-009-J »