Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 914033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:39:14+00:00 2026-05-15T17:39:14+00:00

Am in process of building my custom component. Am trying to read values of

  • 0

Am in process of building my custom component. Am trying to read values of PipleBuffer by
GetProperty(“propertyname”).GetValue() as below:

    public override void ProcessInput(int inputID, PipelineBuffer buffer)
    {
        while (buffer.NextRow())
        {
            string nk = buffer[1].ToString();
            string nk1 = buffer.GetType().GetProperty("NK").GetValue(buffer, null).ToString();

at line buffer[1].ToString() work fine,
but at next line it fails throwing :

NullReferenceException : object reference not set to an instance of an object

Any clues please.

Cannot create object instance of PipleBuffer as is under protection level.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:39:15+00:00Added an answer on May 15, 2026 at 5:39 pm

    Either buffer.GetType().GetProperty("NK") is null, or buffer.GetType().GetProperty("NK").GetValue(buffer, null) is null.

    Change your code as follows and find out:

    PropertyInfo prop = buffer.GetType().GetProperty("NK");
    if (prop == null)
    {
        throw new Exception("prop is null!");
    }
    
    object value = prop.GetValue(buffer, null);
    if (value == null)
    {
        throw new Exception("value is null!");
    }
    
    string nk1 = value.ToString();
    

    Note this is for diagnostic purposes only. I don’t propose you keep this in your code!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the building process of an array I'm trying to call a function, checkIfNodeExists()
I've read all of the documentation online about building search interfaces and adding custom
I'm building my first Flex custom component, in Flex 3. It is a data
At the moment I am in the process of building a custom button handler
I have read several documentations about building custom ErrorHandler (by inheriting from IErrorHandler). Unfortunately,
During the process of building software applications, you would start testing what you have
In the process of building a third party bundle for the Symfony2 framework I
I'm in the process of building a WPF application and ran into an error
I'm in the process of building a support page for my pre application. I'm
We're in the process of building a MOSS site and one of the 3rd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.