Government Code section 830.2 allows a court to determine, as a matter of law, that a condition was too trivial to support liability, even when viewing the evidence in the light most favorable to the plaintiff. Appellate courts reviewing a trial court's trivial defect determination generally examine several non-exclusive factors: the size and nature of the defect, the lighting and visibility conditions at the time of the incident, whether the defect had a history of causing other injuries, and whether there were any aggravating circumstances that increased the danger beyond what the physical dimensions of the defect alone would suggest. This is a fact-intensive inquiry that appellate courts are sometimes willing to resolve differently than the trial court, particularly where the trial record includes evidence of aggravating circumstances the trial court did not adequately weigh, such as poor lighting, high foot traffic, or a documented history of near-miss incidents at the same location.