diff --git a/src/main/java/no/stelar7/api/r4j/impl/lol/builders/matchv5/match/TimelineBuilder.java b/src/main/java/no/stelar7/api/r4j/impl/lol/builders/matchv5/match/TimelineBuilder.java index b295e568..f097b954 100644 --- a/src/main/java/no/stelar7/api/r4j/impl/lol/builders/matchv5/match/TimelineBuilder.java +++ b/src/main/java/no/stelar7/api/r4j/impl/lol/builders/matchv5/match/TimelineBuilder.java @@ -52,12 +52,24 @@ public TimelineBuilder withPlatform(RegionShard platform) public LOLTimeline getTimeline() { - return getTimelineRAW().asLOLTimeline(); + GAMHSMatch rawMatch = getTimelineRAW(); + + if (rawMatch == null) { + return null; + } + + return rawMatch.asLOLTimeline(); } public LOLMetadata getMetadata() { - return getTimelineRAW().asLOLMatchMetadata(); + GAMHSMatch rawMatch = getTimelineRAW(); + + if (rawMatch == null) { + return null; + } + + return rawMatch.asLOLMatchMetadata(); } public GAMHSMatch getTimelineRAW()