diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsLinkHandlerFactoryTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsLinkHandlerFactoryTest.java index 3e4d7bdf4..d39c2f4e0 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsLinkHandlerFactoryTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsLinkHandlerFactoryTest.java @@ -24,7 +24,7 @@ public class YoutubeCommentsLinkHandlerFactoryTest { @Test public void getIdWithNullAsUrl() { - assertThrows(IllegalArgumentException.class, () -> linkHandler.fromId(null)); + assertThrows(NullPointerException.class, () -> linkHandler.fromId(null)); } @Test